package com.chrome; import org.openqa.selenium.chrome.ChromeDriver; public class ChromeDemo { public static void main(String[] args) { //Before creating instance of ChromeDriver set system property as below System.setProperty("webdriver.chrome.driver", "J:\\Softwares\\drivers\\chromedriver.exe"); ChromeDriver driver = new ChromeDriver(); driver.get("http://google.co.in"); driver.manage().window().maximize(); } }
No comments:
Post a Comment