public class TestRunner extends BaseSetup {
private WebDriver driver;
private BaseSetup baseSetup;
private TestRunner testRunner;
static String driverPath = "D:\\selenium\\chromedriver_win32\\chromedriver.exe";
@BeforeClass
public void setUp() {
System.out.println("Launching google chrome with new profile..");
System.setProperty("webdriver.chrome.driver", driverPath
+ "chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.manage().window().maximize();
}
@Test
public void testUrl() {
System.out.println("im in first test case from demoOne Class");
}
} /I am using above code to run chrome browser using selenium.Its only showing error that the driperpath does not exist/
Aucun commentaire:
Enregistrer un commentaire