1.

What is WebDriverBackedSelenium?

Answer»

Selenium is a set of different software tools each with a different purpose and approach to supporting test automation. Selenium Webdriver is one of the tools in Selenium. The Java version of WebDriver SUPPORTS the IMPLEMENTATION of the Selenium-RC API. WebDriverBackedSelenium is a class name where you can create an object for it. The WebDriver API is fundamentally different in its design COMPARED to Selenium RC. You can use the WebDriver technology using the Selenium-RC API. This is MAINLY provided for backward compatibility. WebDriverBacked selenium allows you to use existing Selenium RC test suites using Selenium-RC API to use WebDriver under the cover. WebDriverBackedSelenium allows you to create tests with Selenium Remote Control syntax.

String baseUrl = "https://nikasio.com"; String remoteControl = "localhost"; Int port = 4444; String browser = "*firefox"; Selenium selenium = new DefaultSelenium(remoteControl, port ,browser ,baseUrl); selenium.start(); selenium.open("/"); selenium.click("link=chapter1"); // rest of the test code WebDriverBackedSelenium is a class name where we can create an object for it as below: Selenium WebDriver= new WebDriverBackedSelenium(WebDriver objectName, “URL path of website”).

The main purpose of this is when we want to write code using both WebDriver and selenium RC, we must use the above-created object to use selenium commands.



Discussion

No Comment Found