Creating a Session
Sauce Bindings allows you to configure numerous capabilities, but it also provides reasonable defaults. If you want to start and stop a session on a Windows 10 machine with the latest version of Chrome, this is all you need to do:
- 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
java/junit5/src/test/java/com/saucelabs/saucebindings/junit5/examples/SessionTest.java
See full example on GitHub
java/junit4/src/test/java/com/saucelabs/saucebindings/junit4/examples/SessionTest.java
See full example on GitHub
java/testng/src/test/java/com/saucelabs/saucebindings/testng/examples/SessionTest.java
See full example on GitHub
java/main/src/test/java/com/saucelabs/saucebindings/examples/SessionTest.java
See full example on GitHub
python/tests/examples/test_create_session.py
See full example on GitHub
ruby/spec/examples/create_session_spec.rb
See full example on GitHub
C# bindings are coming soon...