Setting Browser Specific Options
Selenium provides options classes for each of the supported browsers with all of their custom settings. Rather than re-implement these, the Sauce Bindings Options classes can be constructed with an instance of one of these Selenum browser object classes. Here is a Selenium Chrome Options class with an argument to start the browser in Full Screen Mode:
- Java
- Python
- Ruby
- C#
- JUnit 5
- JUnit 4
- TestNG
- Direct
java/junit5/src/test/java/com/saucelabs/saucebindings/junit5/examples/BrowserOptionsTest.java
See full example on GitHub
java/junit4/src/test/java/com/saucelabs/saucebindings/junit4/examples/BrowserOptionsTest.java
See full example on GitHub
java/testng/src/test/java/com/saucelabs/saucebindings/testng/examples/BrowserOptionsTest.java
See full example on GitHub
java/main/src/test/java/com/saucelabs/saucebindings/examples/BrowserOptionsTest.java
See full example on GitHub
python/tests/examples/test_browser_options.py
See full example on GitHub
ruby/spec/examples/browser_options_spec.rb
See full example on GitHub
C# bindings are coming soon...