How do I use Selenium in Chrome WebDriver?

How do I use Selenium in Chrome WebDriver?

Selenium WebDriver uses ChromeDriver, a separate application, to control Chrome. The Chromium team looks after it, with aid from WebDriver contributors. If you’re not familiar with Selenium WebDriver, go to the Selenium website.

To prepare your tests for ChromeDriver, follow these steps:

Ascertain that Chromium/Google Chrome is installed in a known place.

ChromeDriver assumes you have Chrome installed in your platform’s default location. You can also use a unique capability to force ChromeDriver to utilise a specific location.

Download the ChromeDriver binaries for your platform from this website’s downloads section.

https://chromedriver.chromium.org/getting-started

Assist WebDriver in locating the ChromeDriver application that was downloaded.

Any of the following steps should suffice:

in your PATH environment variable include the ChromeDriver location