Setting Common Options
The three capabilities that matter most to Sauce Labs users are:
browserName
browserVersion
platformName
By default, Sauce Bindings provides the latest version of Google Chrome on Windows 10.
To see what values are supported by Sauce Labs for these 3 capabilities, take a look at our Platform Configurator
Additionally, there are settings that apply to all browser sessions
that can be configured in SauceOptions
Here's an example of running a test on Firefox and Windows 8.0, that accepts insecure certificates and changes
the unhandled prompt behavior to "ignore"
:
- Java
- Python
- Ruby
- C#
Select the test runner tab based on which library you added to your .pom
file
- JUnit 5
- JUnit 4
- TestNG
- Direct
https://github.com/saucelabs/sauce_bindings/tree/website-1.2.0/java/junit5/src/test/java/com/saucelabs/saucebindings/junit5/examples/CommonOptionsTest.java
https://github.com/saucelabs/sauce_bindings/tree/website-1.2.0/java/junit4/src/test/java/com/saucelabs/saucebindings/junit4/examples/CommonOptionsTest.java
https://github.com/saucelabs/sauce_bindings/tree/website-1.2.0/java/testng/src/test/java/com/saucelabs/saucebindings/testng/examples/CommonOptionsTest.java
https://github.com/saucelabs/sauce_bindings/tree/website-1.2.0/java/main/src/test/java/com/saucelabs/saucebindings/examples/CommonOptionsTest.java
https://github.com/saucelabs/sauce_bindings/tree/website-1.2.0/python/tests/examples/test_basic_options.py
https://github.com/saucelabs/sauce_bindings/tree/website-1.2.0/ruby/spec/examples/basic_options_spec.rb
C# bindings are coming soon...