Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between DefaultSelenium and RemoteWebDriver?

Tags:

selenium

Is RemoteWebDriver a replacement for DefaultSelenium in Selenium 2.0 or can the two be used in conjunction?

like image 533
Paul Bevis Avatar asked Apr 04 '11 13:04

Paul Bevis


1 Answers

RemoteWebDriver is simply the driver for connecting to a remote selenium server. You can use WebDriver and old Selenium together with WebDriverBackedSelenium, which extends from DefaultSelenium.

RemoteWebDriver driver = new RemoteWebDriver(new URL("http://remoteServer:4444/wd/hub"), DesiredCapabilities.internetExplorer());

Selenium selenium = new WebDriverBackedSelenium(driver, START_URL);
like image 89
dex1304 Avatar answered Oct 16 '22 20:10

dex1304