WebdriverIO service for better Browserstack integration
npm install wdio-browserstack-serviceWebdriverIO Browserstack Service
==========
This project is now part of the webdriverio monorepo. Find the new home for this project
here.
> A WebdriverIO service that manages local tunnel and job metadata for Browserstack users.
Simply run:
``bash`
npm install --save-dev wdio-browserstack-service
WebdriverIO has Browserstack support out of the box. You should simply set user and key in your wdio.conf.js file. This service plugin provides supports for Browserstack Tunnel. Set browserstackLocal: true also to activate this feature.
`js`
// wdio.conf.js
export.config = {
// ...
services: ['browserstack'],
user: process.env.BROWSERSTACK_USERNAME,
key: process.env.BROWSERSTACK_ACCESS_KEY,
browserstackLocal: true,
};
Type: String
Type: String
to true in browser capabilities.Type:
Boolean
Default: false$3
Set this to true to kill the browserstack process on complete, without waiting for the browserstack stop callback to be called. This is experimental and should not be used by all. Mostly necessary as a workaraound for this issue.Type:
Boolean
Default: false$3
Specified optional will be passed down to BrowserstackLocal. See this list for details.Type:
Object
Default: {}`----
- It's more of how webdriverio desigend the multi-process model. It is extremely hard if not impossible to reliable transfer localIdentifier to child-processes. We recommend to use it without the identifier at this moment, which will create an account-wide local tunnel.
- wdio-sauce-service
- browserstack-local
- ... and all other dependencies
For more information on WebdriverIO see the homepage.
Thanks for Browserstack to provide us with a free account for automated tests.