I'm adding Selenium Grid support to our Selenium-RC based test
application. With Selenium-RC I used the -userExtensions <file>
parameter to pass our extensions to the browser, and this worked just
fine.
With Selenium Grid this is no longer a viable option. Every test run
may need another user-extensions.js file, so now I pass the file's
contents via the Selenium client driver. Unfortunately, our custom
locator doesn't work with this method (this is as described in the
last comment on [1]).
This brings me to my question: how do I extend Selenium using
JavaScript passed via the client driver?
Regards,
Sybren
[1] http://ttwhy.org/home/blog/2008/05/14/selenium-rc-per-session-
extension-javascript/
I've found a solution for this, check
http://stuvel.eu/archive/131/extending-selenium-from-the-client-driver
Cheers,
Sybren