Selenium :- How to Open Chrome Browser

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

public class chrome1 {
 public static void main(String[] args)
 {
  System.setProperty("webdriver.chrome.driver","C:\\Chrome\\chromedriver.exe"); //path of     
  chromeDriver.exe file

  WebDriver driver = new ChromeDriver();

  driver.get("http://google.com");
 }
}             

Comments

Popular posts from this blog

Testing Webservice with SoapUI Having Windows Authentication

How to Re-run Failed Scenarios in Cucumber

Data Driven Testing Using Selenium -WebDriver in Python