Class ElementScrollBehaviourConfigurator<D extends org.openqa.selenium.WebDriver>

  • All Implemented Interfaces:
    WebDriverConfigurationParticipant<D>

    @Deprecated
    public class ElementScrollBehaviourConfigurator<D extends org.openqa.selenium.WebDriver>
    extends java.lang.Object
    implements WebDriverConfigurationParticipant<D>
    Deprecated.
    If an element should be clicked, and it is not in the viewport (not visible), then selenium has to scroll to make the element clickable. However, if you have the element then in the top of the viewport, then you might get problems with an fixed top menu bar, which would prevent your element from being clicked. This configurator lets you decide if you want to get scrolled elements at the top or bottom of the viewport.
    • Constructor Detail

      • ElementScrollBehaviourConfigurator

        public ElementScrollBehaviourConfigurator​(org.openqa.selenium.internal.ElementScrollBehavior elementScrollBehavior)
        Deprecated.
    • Method Detail

      • addDesiredCapabilities

        public void addDesiredCapabilities​(org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities)
        Deprecated.
        Description copied from interface: WebDriverConfigurationParticipant
        Can add desired capabilities to a WebDriver before it gets created.
        Specified by:
        addDesiredCapabilities in interface WebDriverConfigurationParticipant<D extends org.openqa.selenium.WebDriver>
        Parameters:
        desiredCapabilities - desired capabilities object, which can be adjusted