To perform automated browser testing on Chrome browser, ChromeDriver class, a standalone executable, is used by Selenium WebDriver to create communication of our test script with the Chrome browsers. You can create a WebDriver object for Chrome like below:
//Creating WebDriver object for Chrome browser WebDriver driver = new ChromeDriver();
Selenium WebDriver helps our test script capabilities or power to communicate with the browser. ChromeDriver class extends the WebDriver interface. It is an implementation of the WebDriver interface which is used to control the Chrome browser running and operations on the local machine.
With the help of the Selenium ChromeDriver class, we can easily interact with the Chrome browser and perform automation testing of web applications on the chrome browser.
This is the implementation for the Selenium ChromeDriver class: