Sunday, May 17, 2015

Selenium Webddriver - Scripts

Some of useful script for Java Selenium Automation Tester:

1)
JavaScript:

JavascriptExecutor javascript = (JavascriptExecutor) driver;
javascript.executeScript("alert('Test Case Execution Is started Now..');");

 2)
Navigation:

driver.navigate().to("http://google.com");
driver.navigate().back();
driver.navigate().forward();

No comments:

Post a Comment