Skip to content

Latest commit

 

History

History
59 lines (39 loc) · 1.25 KB

README.md

File metadata and controls

59 lines (39 loc) · 1.25 KB

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

// Typescript
import { config } from 'protractor.conf';
import { ParallelInstanceHelper } from 'protractor-parallel-instances';

// create new browser instance with imported config file
const newBrowser = await ParallelInstanceHelper.createNewBrowser(config);
await newBrowser.get('https://google.com');
// Javascript: TODO

Table of Contents

ParallelInstanceHelper

createNewBrowser

Helps in creating new ProtractorBrowser instance. Accepts protractor config file to create new instances

Parameters

  • configurationFile any
  • waitForAngularEnabled [boolean]

Returns [Promise]<ProtractorBrowser>

updateGlobal

Updates the global browser object with newly create driver instance

await ParallelInstanceHelper.updateGlobal();