I'm using setExtensionJs with an user-extensions.js file that defines a doFoo prototype. This throws an exception everytime Selenium starts:
CHECKPOINT-FAIL com.thoughtworks.selenium.SeleniumException: ERROR: Unknown command "doFoo"
The setExtensionJs call is of course before of the start call.
Launching Selenium with:
-userExtensions user-extensions.js
works without problem.
Does anyone has an idea why I got the exception?