Socket
Socket
Sign inDemoInstall

protractor-parallel-instances

Package Overview
Dependencies
0
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    protractor-parallel-instances

Helps in creating dynamic instances based on the conf file passed


Version published
Weekly downloads
37
increased by15.63%
Maintainers
1
Install size
1.51 MB
Created
Weekly downloads
 

Readme

Source

protractor-parallel-instances

A simple tool that allows you to create protractor browser instances based on the configuration file passed to createNewBrowser(*) method. You need to explicitly handle closing of browser as protractor does not handle it

Installation: npm i protractor-parallel-instances --save-dev

Table of Contents

  • ParallelInstanceHelper

ParallelInstanceHelper

createNewBrowser

Helps in creating new ProtractorBrowser instance based on the conf file passed into the arguments You need to close these browsers explicitly by calling closeBrowser() as protractor does not manage it Returns an instance of ProtractorBrowser

Parameters
  • configurationFile any
  • waitForAngularEnabled boolean

Returns Promise<ProtractorBrowser>

switchToDefaultBrowser

Switches the driver context to the global/default browser

switchToNewBrowser

Switches the driver content to local browsers index is an optional parameter, if there is only one local instance available then calling this method will switch the driver context to the local browser Otherwise an Exception is thrown to specify the browser index explicitly

Parameters
  • index

executeInNewBrowser

Executes a piece of code in newly created driver and sets global values to default once function definition is executed

Parameters
  • oldBrowser native browser
  • newBrowser browser created by calling createNewBrowser method
  • definition verb - operations you want to perform

closeBrowser

Closes locally create driver instances

Parameters
  • index

Keywords

FAQs

Last updated on 08 Oct 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc