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; }
public ElementScrollBehaviourConfigurator(ElementScrollBehavior elementScrollBehavior) { this.elementScrollBehavior = elementScrollBehavior; }
/** * 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; }