Java 类org.openqa.selenium.internal.ElementScrollBehavior 实例源码

项目:SeleniumCucumber    文件:IExploreBrowser.java   
public Capabilities getIExplorerCapabilities() {
    DesiredCapabilities cap = DesiredCapabilities.internetExplorer();
    cap.setCapability(InternetExplorerDriver.ELEMENT_SCROLL_BEHAVIOR,
            ElementScrollBehavior.BOTTOM);
    cap.setCapability(InternetExplorerDriver.IE_ENSURE_CLEAN_SESSION, true);
    cap.setCapability(
            InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,
            true);
    cap.setCapability(InternetExplorerDriver.IGNORE_ZOOM_SETTING, true);
    cap.setJavascriptEnabled(true);
    return cap;
}
项目:willtest    文件:ElementScrollBehaviourConfigurator.java   
public ElementScrollBehaviourConfigurator(ElementScrollBehavior elementScrollBehavior) {
    this.elementScrollBehavior = elementScrollBehavior;
}
项目:willtest    文件:SeleniumRule.java   
/**
 * See {@link ElementScrollBehaviourConfigurator} for details
 *
 * @param elementScrollBehaviour scroll behavior
 * @return this to enable method chaining
 */
public SeleniumRule<P, D> setElementScrollBehaviour(ElementScrollBehavior elementScrollBehaviour) {
    this.addWebDriverConfigurationParticipant(new ElementScrollBehaviourConfigurator<>(elementScrollBehaviour));
    return this;
}