Skip to main content
Get Automate insights in Microsoft Teams with our new integration! Get Started!.

Selenium with WebdriverIO

Your guide to running tests using WebdriverIO on BrowserStack’s Selenium Grid of 3000+ real devices and desktop browsers.

Run tests on 3000+ real devices and desktop browsers

Run sample build

Here’s how you can run a sample WebdriverIO test build in three simple steps on BrowserStack:

Prerequisites

You need to have BrowserStack Username and Access key, which you can find in your account settings. If you have not created an account yet, you can sign up for a Free Trial

Clone the sample repository

Clone our sample repository and install the dependencies. You’ll need a developer environment with Node 12+.

Copy icon Copy snippet

Configure the test script

In order to test, you will need to configure a few parameters in the sample repository.

Set access credentials

Use user and key variables to set your BrowserStack access credentials in test.conf.js. This is required to authenticate your tests.

Configure browser or device combinations

Choose from 3000+ real mobile devices and browsers available on BrowserStack:

Parallel thread #1
Parallel thread #2
Parallel thread #3

Copy and replace the test.conf.js config file

Copy the adjacent config and paste it in the webdriverio-browserstack/conf/test.conf.js file within your project folder.

Copy icon Copy snippet

Execute the build on BrowserStack

You are now ready to run your build on BrowserStack. From the root directory of this project, run the following command.

Copy icon Copy snippet

Next steps

Once you have successfully run the sample test on BrowserStack, you might want to check the following:

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback!

Talk to an Expert
Download Copy