selenium webdriver docs code example

Example 1: what is webdriver in selenium

WebDriver:

WebDriver object represents the browser in Selenium.
Using this object you can control the Web browser.
It is an interface of the org.openqa.selenium.* package.
Upon instantiating the implementations of this class 
the browser will be launched.
FirefoxDrive, ChromeDriver, 
InternetExplorerDriver, SafariDriver, OperaDriver, 
HtmlUnitDriver, RemoteWebDriver are few 
implementations of the WebDriver Interface.

Example 2: selenium api

ActionChains(driver).key_down(Keys.CONTROL).send_keys('c').key_up(Keys.CONTROL).perform()

Tags:

Java Example