Webdriver & Selenium Grid

146 views
Skip to first unread message

JerraraJohn

unread,
Jan 17, 2010, 4:36:34 PM1/17/10
to webdriver
Hi,

I'm trying to use Webdriver with Selenium Grid.

After searching through the interweb I found that I can make tests
threadsafe by using the
com.thoughtworks.selenium.grid.tools.ThreadSafeSeleniumSessionStorage
class that is included with the grid examples. And that's cool to run
the tests with Selenium. But I want to run with WebDriver so that the
Selenium RC window need not open, and I feel that WebDriver is just
more reliable when running and I prefer the WebDriver API.

I found a post in here titled "Creating new WebDriverBackedSelenium
instances" by Simon Stewart that showed how to get a
WebDriverBackedSelenium instance by passing "*firefox-webdriver" as
the browser string into DefaultSelenium constructor.

So I pass the browser string "*firefox-webdriver" to
ThreadSafeSeleniumSessionStorage.startSeleniumSession and changed the
body of the method to:

Selenium sel = new DefaultSelenium(seleniumHost, seleniumPort,
browser, webSite);
threadLocalSelenium.set(sel);
DesiredCapabilities caps = DesiredCapabilities.firefox();
caps.setVersion("3.5");
session().start(caps);

This runs, but in Selenium Grid but it runs with a Selenium RC window,
so I assume it is not WebDriver driving the browser.

In addition to all of this I need to use a specific Firefox profile
with WebDriver, I have no idea how to incorporate using a particular
profile into the above scenario.

Any help is appreciated.

Simon Stewart

unread,
Jan 26, 2010, 3:44:58 AM1/26/10
to webd...@googlegroups.com
Hi,

We have not started the integration of the new webdriver APIs into
selenium grid, which may explain the problems you're having. I've not
got a lot of experience with the grid code yet, so can't really help.
I suspect that a good first step would be to replace the selenium JAR
with the selenium 2 alpha JAR.

As for using a profile with a remote instance of webdriver: it's on
the list as a requirement, I'm just unsure how the API should look.

Regards,

Simon

> --
> You received this message because you are subscribed to the Google Groups "webdriver" group.
> To post to this group, send email to webd...@googlegroups.com.
> To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.
>
>
>
>

Reply all
Reply to author
Forward
0 new messages