What is Webdriver Backed Selenium and why it is used?

0 votes
What is Webdriver Backed Selenium and why it is used?
Jul 2, 2019 in Selenium by Sushma
166 views

1 answer to this question.

0 votes

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();
}
}
answered Jul 2, 2019 by Abha
• 27,740 points

Related Questions In Selenium

0 votes
1 answer

What is Robot Class in selenium webdriver and why it is used?

Hello Akanksha, Robot Class is used for those ...READ MORE

answered May 8, 2019 in Selenium by Pratibha
• 3,690 points
289 views
0 votes
1 answer

What is TestNG and why it is used in selenium?

Hello @User, Talking about TestNG, it is an ...READ MORE

answered Dec 24, 2018 in Selenium by Shuvodip
167 views
0 votes
1 answer

What is Xpath and what are the types of it in Selenium Webdriver?

Hi Piyush, XPath is defined as XML path. It is ...READ MORE

answered May 8, 2019 in Selenium by Pratibha
• 3,690 points
334 views
0 votes
1 answer

What is POM in Selenium and what it is used for?

Hello Rubina, POM is Page Object Model which ...READ MORE

answered May 12, 2019 in Selenium by Anvi
• 14,010 points
470 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,510 points
1,525 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,850 points
1,483 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,850 points
1,254 views
0 votes
1 answer

What is a Modular Framework and why it is useful in Selenium webdriver?

Hi Junaid, as the name suggests, Modular ...READ MORE

answered May 12, 2019 in Selenium by Abha
• 27,740 points
1,288 views
0 votes
1 answer

What is Apache POI in Selenium and what it is used for?

Hi Raj, Apache POI is the most commonly ...READ MORE

answered May 8, 2019 in Selenium by Abha
• 27,740 points
575 views