I'm running tests at SauceLabs. I used the sample code at the bottom of the Coypu README at GitHub (specifically the SauceLabsDriver class).
The SauceLabsDriver class drives my tests without a hitch. The problem is, I want to get the SessionId when I set up a new session at SauceLabs, so I can use that Id later to retrieve the job via their REST API and update the test status "passed" attribute.
I've tried everything I can think of within the SauceLabsDriver class, but I can't figure out how to get to the SessionId. If SauceLabsDriver subclassed RemoteWebDriver, the SessionId is available, but not if it subclasses SeleniumWebDriver. I haven't been able to test with a RemoteWebDriver class yet (can't connect to Sauce from work at the moment), so I'm not sure that option would even work.
I also tried using the SauceLabsDriver class as written, then creating a Coypu BrowserSessionusing that driver, thinking that maybe I could get the native driver and cast to a RemoteWebDriver to get at the SessionId. I could do the cast, but SessionId isn't available when I do. I'm stumped.
So, a couple questions:
* Does Coypu require a SeleniumWebDriver, or can it use a straight RemoteWebDriver?
* If the former, is there any way I can get the SessionId from within the SauceLabsDriver class in the README?
Thanks.