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
https://github.com/saucelabs/sauce_bindings/tree/website-1.2.0/java/junit5/src/test/java/com/saucelabs/saucebindings/junit5/examples/BrowserOptionsTest.java
https://github.com/saucelabs/sauce_bindings/tree/website-1.2.0/java/junit4/src/test/java/com/saucelabs/saucebindings/junit4/examples/BrowserOptionsTest.java
https://github.com/saucelabs/sauce_bindings/tree/website-1.2.0/java/testng/src/test/java/com/saucelabs/saucebindings/testng/examples/BrowserOptionsTest.java
https://github.com/saucelabs/sauce_bindings/tree/website-1.2.0/java/main/src/test/java/com/saucelabs/saucebindings/examples/BrowserOptionsTest.java
https://github.com/saucelabs/sauce_bindings/tree/website-1.2.0/python/tests/examples/test_browser_options.py
https://github.com/saucelabs/sauce_bindings/tree/website-1.2.0/ruby/spec/examples/browser_options_spec.rb
C# bindings are coming soon...