


tProperty("","D:\\Drivers\\chromedriver.exe") The complete program to launch the ChromeDriver will be like this: package Method 1: Use system propertyĬode to set the System properties is tProperty(“”,“Path to chromedriver.exe”) There are 2 methods to initialize ChromeDriver- Use Different ways to initialize ChromeDriver The selenium commands will be interpreted by ChromeDriver and it will be executed on Chrome. The driver for Chrome is the ChromeDriver. To overcome the above problem we need to download the ChromeDriver in order to work with selenium commands which we are writing on Chrome. which tells The path to the driver executable must be set by. When you run above program we get an exception called. Launching a Chrome driver is easy for launching as any other driver. Location will be later used to instantiate the driver.Ĭhrome Driver Launching Chrome Browser using Selenium WebDriver Note the location where you extracted the ChromeDriver.

You will be navigated to ChromeDriver download page which contains ChromeDriver for Linux, Mac and Windows operating systems. The following are the steps to download ChromeDriver.- Step 1: Go to the Chromium official website and download latest version of ChromeDriver based on your operating system Chrome Version
