All Downloads are FREE. Search and download functionalities are using the official Maven repository.

FlaNium.WinAPI.elements.VerticalScrollBar Maven / Gradle / Ivy

There is a newer version: 2.3.0
Show newest version
package FlaNium.WinAPI.elements;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.Response;

public class VerticalScrollBar extends ScrollBarBase {

    private static final String VERTICAL_SCROLL_BAR_SCROLL_UP = "verticalScrollBarScrollUp";
    private static final String VERTICAL_SCROLL_BAR_SCROLL_DOWN = "verticalScrollBarScrollDown";
    private static final String VERTICAL_SCROLL_BAR_SCROLL_UP_LARGE = "verticalScrollBarScrollUpLarge";
    private static final String VERTICAL_SCROLL_BAR_SCROLL_DOWN_LARGE = "verticalScrollBarScrollDownLarge";

    public VerticalScrollBar(WebElement element) {
        super(element);
    }

    /**
     * Scrolls up by a small amount.
     */
    public void scrollUp(){
        Response response = callVoidCommand(VERTICAL_SCROLL_BAR_SCROLL_UP);
    }

    /**
     * Scrolls down by a small amount.
     */
    public void scrollDown(){
        Response response = callVoidCommand(VERTICAL_SCROLL_BAR_SCROLL_DOWN);
    }

    /**
     * Scrolls up by a large amount.
     */
    public void scrollUpLarge(){
        Response response = callVoidCommand(VERTICAL_SCROLL_BAR_SCROLL_UP_LARGE);
    }

    /**
     * Scrolls down by a large amount.
     */
    public void scrollDownLarge(){
        Response response = callVoidCommand(VERTICAL_SCROLL_BAR_SCROLL_DOWN_LARGE);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy