Get your setup working faster. Join our Discord for optimisation tips from elite testers.
Join our Discord
Upgrade the BrowserStack SDK for Playwright
How to upgrade the BrowserStack SDK for your Playwright tests across languages, and why keeping it current matters.
The BrowserStack SDK is released as a versioned package for each language, which you upgrade independently of your test code.
Why upgrade the SDK
Staying on a recent SDK version gives you:
- Latest framework and language support: compatibility with newer releases of your test frameworks (such as WebdriverIO, Playwright, and TestNG) and new language or framework integrations.
- New features and capabilities: access to the latest BrowserStack product features delivered through the SDK.
- Bug fixes and reliability: improved session stability, more accurate reporting, better performance, and security updates.
- Continued support: very old SDK versions can lose support for new dashboard features or run into breaking API changes.
How to upgrade
Always upgrade to the latest version. Select your language or tool to see the upgrade steps:
Quick reference
The following table summarizes the package, upgrade command, and version location for each language and tool:
| Language / Tool | Package | Upgrade command | Pin location |
|---|---|---|---|
| Java | com.browserstack:browserstack-java-sdk |
Bump the version, then mvn clean install
|
pom.xml / build.gradle
|
| C# / .NET | BrowserStack.TestAdapter |
dotnet add package BrowserStack.TestAdapter |
.csproj |
| Node.js | browserstack-node-sdk |
npm install --save-dev browserstack-node-sdk@latest |
package.json |
| Python | browserstack-sdk |
pip install https://sdk-assets.browserstack.com/python/browserstack_sdk-latest.tar.gz |
requirements.txt |
| Ruby | browserstack-ruby-sdk |
Bump the Gemfile, then bundle install
|
Gemfile |
| WebdriverIO | @wdio/browserstack-service |
npm install --save-dev @wdio/browserstack-service@latest |
package.json |
| Cypress | browserstack-cypress-cli |
npm install --save-dev browserstack-cypress-cli@latest |
package.json |
| Nightwatch | @nightwatch/browserstack |
npm install --save-dev @nightwatch/browserstack@latest |
package.json |
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
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!