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
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");
}
} WebDriver driver = new ChromeDriver();
driver.get("http://google.com");
}
Comments