grid: adding location strategy with user-extensions.js

51 views
Skip to first unread message

Sybren A. Stüvel

unread,
Aug 19, 2010, 10:33:11 AM8/19/10
to Selenium Users
Dear list,

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/

Sybren A. Stüvel

unread,
Aug 20, 2010, 4:18:06 AM8/20/10
to Selenium Users
Hi folks,

I've found a solution for this, check
http://stuvel.eu/archive/131/extending-selenium-from-the-client-driver

Cheers,
Sybren

Reply all
Reply to author
Forward
0 new messages