BrowserStack SDK - FAQs
This section addresses the most frequently asked questions about BrowserStack SDKs. If you have a question that’s not covered here, let us know:
If capabilities are defined both in the browserstack.yml file and in test scripts, which ones are prioritized?
If you have capabilities declared in both the browserstack.yml
file and in test scripts, the SDK merges these capabilities. However, if you have similar capabilities mentioned in both these locations, the capabilities in the browserstack.yml
file take precedence.
When using BrowserStack Local, do I need to explicitly pass the local identifier?
No. The SDK handles this automatically for you.
Does the SDK support W3C or the JSON wire protocol?
The SDK supports both.
I am using local webdriver. Do I need to edit my test scripts to create remote webdriver?
No, the SDK intercepts all types of webdrivers and overrides them to point to BrowserStack’s remote grid.
Where do I add capabilities?
We recommend adding all capabilities in the browserstack.yml
file, but you can also configure them in your test script. SDK uses the order of precedence logic to ensure capabilities are set correctly.
How do I integrate my CI/CD setup with BrowserStack SDK?
The steps to integrate with CI/CD tools are the same, whether you integrate using SDK or manually. Check out our documentation to learn more.
How to fix the Java static WebDriver issue?
Declaring WebDriver static
can lead to IDLE_TIMEOUT
.
From browserstack-java-sdk@1.3.0
onwards, enabling the staticWebDriver: true
flag in the browserstack.yml
fixes this issue.
At present, the default value is set to false
to make it an experimental feature.
Is the C# debugger supported with SDK?
Yes, Debugger is supported after browserstack-sdk@1.0.2
and BrowserStack.TestAdapter@0.1.0
.
SDK spawns as many test processes as the number of platforms you want to test on. Debugger is attached to the first platform mentioned on browserstack.yml
. To attach the debugger to 2nd platform, 1st platform needs to be removed from platforms array in browserstack.yml
.
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!