Sunday, January 26, 2020

To Start the Chrome Browser in Selenium using java

0 comments


******************CODE*******************
package aveditor;

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


public class StartBrowser {
public static void main(String []args)
{
WebDriver driver;
System.setProperty("webdriver.chrome.driver", ".Path of  Drivers");
driver=new ChromeDriver();
driver.get("http://www.google.com/");
}

}
----------------------------------------------------------------------------------------------------

No comments:

Post a Comment