Skip to content

Instantly share code, notes, and snippets.

Last active December 12, 2016 04:53
What would you like to do?
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
public class SampleSauceTest {
public static final String URL = "";
public static void main(String[] args) throws Exception {
DesiredCapabilities capabilities =;
capabilities.setCapability("platform", "Windows 10");
capabilities.setCapability("version", "48.0");
WebDriver driver = new RemoteWebDriver(new URL(URL), capabilities);
WebElement freeTrialButton = driver.findElement("signup");;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment