driverInstance.close();
selenium.stop();
......
String baseUrl = driver.getCurrentUrl();
Selenium selenium = new WebDriverBackedSelenium(driver, baseUrl);
selenium.open("http://www.google.com.hk/");
WebDriver driverInstance =
((WebDriverBackedSelenium)selenium).getUnderlyingWebDriver();
googlesearchpage.searchfor(driverInstance, "Gmail");
driverInstance.close();
selenium.stop();
......
No comments:
Post a Comment