protractor-parallel-instances
Node module to create browser instances on the fly. It accepts a protractor config file to create new instances
npm i protractor-parallel-instances --save-dev
Usage
import { config } from 'protractor.conf';
import { ParallelInstanceHelper } from 'protractor-parallel-instances';
const newBrowser = await ParallelInstanceHelper.createNewBrowser(config);
await newBrowser.get('https://google.com');
Table of Contents
ParallelInstanceHelper
createNewBrowser
Helps in creating new ProtractorBrowser instance. Accepts protractor config file to create new instances
Parameters
configurationFile
anywaitForAngularEnabled
[boolean]
Returns [Promise]<ProtractorBrowser>
updateGlobal
Updates the global browser
object with newly create driver instance
await ParallelInstanceHelper.updateGlobal();