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 void
down(Integer n)
scroll down number of pixelsvoid
left(Integer n)
scroll left number of pixelsvoid
right(Integer n)
scroll right number of pixelsvoid
to(Path path)
Scroll until the location of an elementvoid
up(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
-
-