Tutorial #4 : What is Selenium WebDriver | Selenium WebDriver |Tutorial for beginner | TestingLPoint

preview_player
Показать описание
Tutorial #4 : Selenium WebDriver | Selenium WebDriver | Tutorial for beginner | TestingLPoint

Selenium WebDriver is powerful and key feature of the Selenium automation testing. The biggest advantage of this is WebDriver API. It is generally known as Selenium 2 which the enhancement of Selenium 1.

WebDriver is designed with a simple and concise programming interface along with the limitations of the RC. So, WebDriver overcome the limitations of the RC.

If you want to create robust and browser-based regression test script then scale the test script across many environment, then Selenium WebDriver is the best option to choose.

What is WebDriver?
WebDriver is a framework. It drives its own web. When you are required to design the test case then WebDriver helps you to write automation test script.

In technical term, Webdriver is an Interface. Search Context which is the top level Interface, extended by WebDriver. This defines all common method like findElement(), findElements(), switchTo(), get() etc. But Remote WebDriver defines all those classes.

From the above figure we can understand that WebDriver extends the Search Context and Remote WebDriver implements WebDriver. So Webdriver is an Interface where as Remote WebDriver is a class. WebDriver contains method signature where as Remote webDriver contains the definitions of those methods.

Here we have created the object for FirefoxDriver class by taking reference of WebDriver Interface. So that we can call WebDriver Interface implemented method. When we will execute this code in selenium, it will open the Firefox Browser with a new session. we can use get() method to open a URL which we will discuss in upcoming section.

#selenium #webdriver #testinglpoint
Рекомендации по теме
Комментарии
Автор

Amazing content thanks for sharing ur video

pluspoint
Автор

Very well described and informative video

foziaali
welcome to shbcf.ru