Search in sources :

Example 1 with PageLoadStrategy

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);
    }
}
Also used : ConfigurationException(com.seleniumtests.customexception.ConfigurationException) PageLoadStrategy(org.openqa.selenium.PageLoadStrategy)

Aggregations

ConfigurationException (com.seleniumtests.customexception.ConfigurationException)1 PageLoadStrategy (org.openqa.selenium.PageLoadStrategy)1