public static class Operations.ScrollElement extends Object
| Constructor and Description |
|---|
ScrollElement(org.openqa.selenium.WebDriver driver,
Path wrapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
down(Integer n)
scroll down number of pixels
|
org.openqa.selenium.WebElement |
downUntilElementIsPresent(Path expectedElement)
Scroll down until the virtualized DOM contains the expect element.
|
org.openqa.selenium.WebElement |
downUntilElementIsPresent(Path expectedElement,
int scrollStep,
int maxNumberOfScrolls)
Scroll down until the virtualized DOM contains the expect element.
|
void |
left(Integer n)
scroll left number of pixels
|
org.openqa.selenium.WebElement |
leftUntilElementIsPresent(Path expectedElement)
Scroll left until the virtualized DOM contains the expect element.
|
org.openqa.selenium.WebElement |
leftUntilElementIsPresent(Path expectedElement,
int scrollStep,
int maxNumberOfScrolls)
Scroll left until the virtualized DOM contains the expect element.
|
void |
right(Integer n)
scroll right number of pixels
|
org.openqa.selenium.WebElement |
rightUntilElementIsPresent(Path expectedElement)
Scroll right until the virtualized DOM contains the expect element.
|
org.openqa.selenium.WebElement |
rightUntilElementIsPresent(Path expectedElement,
int scrollStep,
int maxNumberOfScrolls)
Scroll right until the virtualized DOM contains the expect element.
|
void |
up(Integer n)
scroll up number of pixels
|
org.openqa.selenium.WebElement |
upUntilElementIsPresent(Path expectedElement)
Scroll up until the virtualized DOM contains the expect element.
|
org.openqa.selenium.WebElement |
upUntilElementIsPresent(Path expectedElement,
int scrollStep,
int maxNumberOfScrolls)
Scroll up until the virtualized DOM contains the expect element.
|
public ScrollElement(org.openqa.selenium.WebDriver driver,
Path wrapper)
public org.openqa.selenium.WebElement downUntilElementIsPresent(Path expectedElement)
expectedElement - - the element we are looking forpublic org.openqa.selenium.WebElement upUntilElementIsPresent(Path expectedElement)
expectedElement - - the element we are looking forpublic org.openqa.selenium.WebElement rightUntilElementIsPresent(Path expectedElement)
expectedElement - - the element we are looking forpublic org.openqa.selenium.WebElement leftUntilElementIsPresent(Path expectedElement)
expectedElement - - the element we are looking forpublic org.openqa.selenium.WebElement downUntilElementIsPresent(Path expectedElement, int scrollStep, int maxNumberOfScrolls)
expectedElement - - the element we are looking forscrollStep - - scroll step in pixelsmaxNumberOfScrolls - maximum number of scroll operationspublic org.openqa.selenium.WebElement upUntilElementIsPresent(Path expectedElement, int scrollStep, int maxNumberOfScrolls)
expectedElement - - the element we are looking forscrollStep - - scroll step in pixelsmaxNumberOfScrolls - maximum number of scroll operationspublic org.openqa.selenium.WebElement rightUntilElementIsPresent(Path expectedElement, int scrollStep, int maxNumberOfScrolls)
expectedElement - - the element we are looking forscrollStep - - scroll step in pixelsmaxNumberOfScrolls - maximum number of scroll operationspublic org.openqa.selenium.WebElement leftUntilElementIsPresent(Path expectedElement, int scrollStep, int maxNumberOfScrolls)
expectedElement - - the element we are looking forscrollStep - - scroll step in pixelsmaxNumberOfScrolls - maximum number of scroll operationspublic void left(Integer n)
n - pixelspublic void right(Integer n)
n - pixelspublic void up(Integer n)
n - pixelspublic void down(Integer n)
n - pixelsCopyright © 2018. All rights reserved.