How to run the selenium test scripts in Chrome/IE browser ?
To run the selenium test cases in Chrome/IE browser is necessary and need of today's web world as Chrome being the one of the best and most widely used web browser.
Selenium by default supports only Mozilla Firefox .
To run your tests in Chrome browser please do the following set-up.
1. Download chrome browser related jar file from here.
2. Set the System configuration by adding the following code.
System.setProperty("webdriver.chrome.driver", "Path to chrome related jar file downloaded in step 1");
WebDriver driver = new ChromeDriver();
To run the test in Internet explorer.
1. Download IE browser related jar file from here.
2. Set the System configuration by adding the following code.
System.setProperty("webdriver.ie.driver", "C:\\Users\\ajain5\\Downloads\\IEDriverServer.exe");
WebDriver driver = new InternetExplorerDriver();
To run the selenium test cases in Chrome/IE browser is necessary and need of today's web world as Chrome being the one of the best and most widely used web browser.
Selenium by default supports only Mozilla Firefox .
To run your tests in Chrome browser please do the following set-up.
1. Download chrome browser related jar file from here.
2. Set the System configuration by adding the following code.
System.setProperty("webdriver.chrome.driver", "Path to chrome related jar file downloaded in step 1");
WebDriver driver = new ChromeDriver();
To run the test in Internet explorer.
1. Download IE browser related jar file from here.
2. Set the System configuration by adding the following code.
System.setProperty("webdriver.ie.driver", "C:\\Users\\ajain5\\Downloads\\IEDriverServer.exe");
WebDriver driver = new InternetExplorerDriver();

