Home » selenium-tutorial » Running Test Case in Chrome Browser

Newly Updated Posts

Running Test Case in Chrome Browser

Previous Topic,Running Test Case in Chrome Browser is simple as running in the other browser, difference is we need to provide the chrome driver on the path.

Running Test Case in Chrome Browser?

To Run the Test on chrome Browser follow the below steps one by one.

Step 1) Click to Click Here link to open the latest chrome driver installation version and click on chrome driver as per the chrome version on your system

Running Test Case in Chrome Browser

Step 2) Click on the chrome driver link as per configuration of OS on you system. Lets say i have window OS so in that click click to chromedriver_win32.zip.

Running Test Case in Chrome Browser

Step3) Now download the Zip to any of you preferred location and unzip it.

Downloading chrome exe file

Step 4) Open the eclipse and create a class and copy the below code.

Cope the below code:

package SeleniumArchitecture;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class FiestTestScriptChrome {

public static void main(String[] args) throws InterruptedException {

    //System property of the Chrome driver( provide the local path of chrome driver here)

     // Create oject of chrome driver 
      WebDriver driver =  new ChromeDriver();

      // Open facebook page

      //Maximise the window

      //Wait for 5 sec
     //Quit driver instance


Step5) Now Run the below code, Right click to java file ->Run as->Java application