saucelabs / sauce-java

A set of helpers for consuming Sauce Labs services from Java
Apache License 2.0
45 stars 61 forks source link

Have our Sauce client set a session id property when instantiated #77

Open nadvolod opened 5 years ago

nadvolod commented 5 years ago

It's a little annoying to be doing something like this as a user:

        WebDriver driver = new RemoteWebDriver(new URL(SAUCE_REMOTE_URL), caps);
        SessionId sessionId = ((RemoteWebDriver) driver).getSessionId();

It would be way easier if our client could automatically set this property and then we could use it like this:

        SauceHelper sauceHelper = new SauceHelper(driver);
sauceHelper.getSessionId();