Of course, Simon objects so it’s not actually in the core API, and it’s only back for Sauce Labs operation, via a hack :)

See a Sauce Labs job that shows it off in use for a BDD/JBehave script.

To use, just do something like this:

JavascriptExecutor js = (JavascriptExecutor) webDriver;
js.executeScript("sauce:context=the sentence you would like to appear in Sauce Labs' job log");

Sauce Labs (and others) can possibly use executeScript() as a generalized control API for their remote cloud instances.



Published

September 30th, 2011
Reads:

Tags

Categories