Selenium WebDriver is used to automate web application testing to verify that the application works as expected. Multiple browser support such as Firefox, Chrome, IE, Safari etc., Multiple programming languages such as Java, C#, Python etc., in order write automated test scripts. Selenium Webdriver is platform-independent since the same code can be used on different Operating Systems like Microsoft Windows, Apple OS and Linux to run the scripts.
Here is a sample code to define WebDriver
Local browser –
WebDriver driver = new FirefoxBrowser();