Hey Shushma, WebDriverBackedSelenium is an implementation of the Selenium-RC API by Selenium Webdriver, which is primarily provided for backwards compatibility. It allows to test existing test suites using the Selenium-RC API by using WebDriver under the covers. WebDriver Backed Selenium is used for migrating Selenium 1.0(Selenium RC) to Selenium WebDriver tests. Checkout this sample code to understand Webdriver Backed Selenium:
@SuppressWarnings("deprecation")
public class WebDriverBackedSelenium extends SeleneseTestCase {
WebDriver driver = new FirefoxDriver();
@Before
public void setUp() throws Exception {
String baseUrl = "https://www.google.co.in/";
Selenium selenium = new WebDriverBackedSelenium(driver, baseUrl);
}
@TEST
public void testBackedSelenium() throws Exception {
selenium.open("/");
selenium.click("id=gbi5");
selenium.click("id=gmlas");
selenium.waitForPageToLoad("30000");
selenium.type("name=as_q", "test");
//Here we are using Webdriver
driver.findElement(By.id("as_oq1")).sendKeys("test1");
driver.findElement(By.id("as_oq2")).sendKeys("test2");
Thread.sleep(5000);
}
@After
public void tearDown() throws Exception {
selenium.stop();
}
}