use of org.openqa.selenium.PageLoadStrategy in project seleniumRobot by bhecquet.
the class SeleniumTestsContext method setPageLoadStrategy.
public void setPageLoadStrategy(String strategy) {
if (strategy != null) {
PageLoadStrategy pls = PageLoadStrategy.fromString(strategy);
if (pls == null) {
throw new ConfigurationException("PageLoadStrategy values are 'eager', 'normal' (default one) and 'none'");
}
setAttribute(PAGE_LOAD_STRATEGY, pls);
} else {
setAttribute(PAGE_LOAD_STRATEGY, DEFAULT_PAGE_LOAD_STRATEGY);
}
}
Aggregations