WebDriver is an interface present in selenium jar file which consists of some browser specific method to perform operation on browser.
Supports multiple browser
Support secure network
Supports secure network
Supports multiple OS.
Supports http protocol.
Does not supports windows application.
Selenium web driver consists of jar files jar files consists of core java classes and interface.
Following are the methods are available in the webdriver
driver.get() method is used to open an website in the webdriver.It takes argument as string in website link format.
driver.findelement() method used to find the location of an element in side the webpage.
driver.findelements() method used t used to get all the elements ts present in the webpage.
driver.navigate().to() Takes webpage as string and open through the driver.
driver.navigate().back() Click the back button of the browser.
driver.navigate().forward() Click the forward button of the browser.
driver.navigate().refresh() Cllick the refresh page of the browser.
Returns current url as a string.
Get method is used to pass the url in the browser.
Used to identify the single element present in the UI.
It is used to pass the url
Method is used to capture the title of the current web page.
It is used to capture th current url.
Method is used to get the html source code of current web page.
When webdriver open an webpage sometimes it open in minimize mode.This method is used to maximize the windows lunch by selenium webdriver.
To delete all cookies present in browser.
It will close the current driver windows lunch by selenium webdriver.
It will close all the windows by selenium driver.
To run selenium in firefox browser check the following post.
1.Selenium gecko driver setup to run Firefox in Ubuntu or Windows