Package com.github.loyada.jdollarx
Class Operations.Scroll
- java.lang.Object
-
- com.github.loyada.jdollarx.Operations.Scroll
-
- Enclosing class:
- Operations
public static class Operations.Scroll extends Object
internal implementation not be instantiated directly - Action of scroll
-
-
Constructor Summary
Constructors Constructor Description Scroll(org.openqa.selenium.WebDriver driver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddown(Integer n)scroll down number of pixelsvoidleft(Integer n)scroll left number of pixelsvoidright(Integer n)scroll right number of pixelsvoidto(Path path)Scroll until the location of an elementvoidup(Integer n)scroll up number of pixels
-
-
-
Method Detail
-
to
public void to(Path path)
Scroll until the location of an element- Parameters:
path- the element to scroll to
-
left
public void left(Integer n)
scroll left number of pixels- Parameters:
n- pixels
-
right
public void right(Integer n)
scroll right number of pixels- Parameters:
n- pixels
-
up
public void up(Integer n)
scroll up number of pixels- Parameters:
n- pixels
-
down
public void down(Integer n)
scroll down number of pixels- Parameters:
n- pixels
-
-