public static class Operations.ScrollElement extends Object
| Constructor and Description |
|---|
ScrollElement(org.openqa.selenium.WebDriver driver,
Path wrapper) |
ScrollElement(org.openqa.selenium.WebDriver driver,
Path wrapper,
int stepSizeOverride) |
| 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 DOM contains the expected element.
|
org.openqa.selenium.WebElement |
downUntilElementIsPresent(Path expectedElement,
int scrollStep,
int maxNumberOfScrolls)
Scroll down until the DOM contains the expected element.
|
org.openqa.selenium.WebElement |
downUntilPredicate(Path expectedElement,
int scrollStep,
int maxNumberOfScrolls,
Predicate<org.openqa.selenium.WebElement> predicate)
Scroll down until the DOM contains the expected element, and
the supplied condition for that element is met.
|
org.openqa.selenium.WebElement |
downUntilPredicate(Path expectedElement,
Predicate<org.openqa.selenium.WebElement> predicate)
Scroll down until the DOM contains the expected element, and
the given condition for that element is met.
|
void |
left(Integer n)
scroll left number of pixels
|
org.openqa.selenium.WebElement |
leftUntilElementIsDisplayed(Path expectedElement)
Scroll left until the DOM contains the expected element, and it's displayed.
|
org.openqa.selenium.WebElement |
leftUntilElementIsPresent(Path expectedElement)
Scroll left until the DOM contains the expected element.
|
org.openqa.selenium.WebElement |
leftUntilElementIsPresent(Path expectedElement,
int scrollStep,
int maxNumberOfScrolls)
Scroll left until the DOM contains the expected element.
|
org.openqa.selenium.WebElement |
leftUntilPredicate(Path expectedElement,
int scrollStep,
int maxNumberOfScrolls,
Predicate<org.openqa.selenium.WebElement> predicate)
Scroll left until the DOM contains the expected element and the supplied predicate for the element is met.
|
org.openqa.selenium.WebElement |
leftUntilPredicate(Path expectedElement,
Predicate<org.openqa.selenium.WebElement> predicate)
Scroll left until the DOM contains the expected element, and the
given predicate regarding that element is met.
|
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.
|
org.openqa.selenium.WebElement |
rightUntilElementIsVisible(Path expectedElement)
Scroll right until the virtualized DOM contains the expect element, and it is visible
Using 40 pixels steps, until the end of the table
|
org.openqa.selenium.WebElement |
rightUntilPredicate(Path expectedElement,
int scrollStep,
int maxNumberOfScrolls,
Predicate<org.openqa.selenium.WebElement> predicate)
Scroll right until the DOM contains the expected element and the supplied predicate for the element is met.
|
org.openqa.selenium.WebElement |
rightUntilPredicate(Path expectedElement,
Predicate<org.openqa.selenium.WebElement> predicate)
Scroll right until the DOM contains the expected element, and the
given predicate regarding that element is met.
|
void |
toLeftCorner()
Scroll to left-most point
|
void |
toTopCorner()
Scroll to top-most point
|
void |
toTopLeftCorner()
Scroll to top-left corner
|
org.openqa.selenium.WebElement |
toTopLeftCorner(Path expectedElement)
Scroll down until the DOM contains the expected 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.
|
org.openqa.selenium.WebElement |
upUntilPredicate(Path expectedElement,
int scrollStep,
int maxNumberOfScrolls,
Predicate<org.openqa.selenium.WebElement> predicate)
Scroll up until the DOM contains the expected element, and
the supplied condition for that element is met.
|
org.openqa.selenium.WebElement |
upUntilPredicate(Path expectedElement,
Predicate<org.openqa.selenium.WebElement> predicate)
Scroll up until the DOM contains the expected element, and
the given condition for that element is met.
|
public ScrollElement(org.openqa.selenium.WebDriver driver,
Path wrapper)
public ScrollElement(org.openqa.selenium.WebDriver driver,
Path wrapper,
int stepSizeOverride)
public org.openqa.selenium.WebElement toTopLeftCorner(Path expectedElement)
expectedElement - - the element we are looking forpublic org.openqa.selenium.WebElement downUntilElementIsPresent(Path expectedElement)
expectedElement - - the element we are looking forpublic org.openqa.selenium.WebElement upUntilPredicate(Path expectedElement, Predicate<org.openqa.selenium.WebElement> predicate)
expectedElement - - the element we are looking forpredicate - - a condition regarding the expected element that is required to be metpublic org.openqa.selenium.WebElement downUntilPredicate(Path expectedElement, Predicate<org.openqa.selenium.WebElement> predicate)
expectedElement - - the element we are looking forpredicate - - a condition regarding the expected element that is required to be metpublic 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 rightUntilElementIsVisible(Path expectedElement)
expectedElement - - the element we are looking forpublic org.openqa.selenium.WebElement rightUntilPredicate(Path expectedElement, Predicate<org.openqa.selenium.WebElement> predicate)
expectedElement - - the element we are looking forpredicate - - a condition regarding the expected element that is required to be metpublic org.openqa.selenium.WebElement leftUntilElementIsPresent(Path expectedElement)
expectedElement - - the element we are looking forpublic org.openqa.selenium.WebElement leftUntilElementIsDisplayed(Path expectedElement)
expectedElement - - the element we are looking forpublic org.openqa.selenium.WebElement leftUntilPredicate(Path expectedElement, Predicate<org.openqa.selenium.WebElement> predicate)
expectedElement - - the element we are looking forpredicate - - a condition regarding the expected element that is required to be metpublic 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 downUntilPredicate(Path expectedElement, int scrollStep, int maxNumberOfScrolls, Predicate<org.openqa.selenium.WebElement> predicate)
expectedElement - - the element we are looking forscrollStep - - scroll step in pixelsmaxNumberOfScrolls - maximum number of scroll operationspredicate - - a condition regarding the expected element that is required to be metpublic org.openqa.selenium.WebElement upUntilPredicate(Path expectedElement, int scrollStep, int maxNumberOfScrolls, Predicate<org.openqa.selenium.WebElement> predicate)
expectedElement - - the element we are looking forscrollStep - - scroll step in pixelsmaxNumberOfScrolls - maximum number of scroll operationspredicate - - a condition regarding the expected element that is required to be metpublic 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 rightUntilPredicate(Path expectedElement, int scrollStep, int maxNumberOfScrolls, Predicate<org.openqa.selenium.WebElement> predicate)
expectedElement - - the element we are looking forscrollStep - - scroll step in pixelsmaxNumberOfScrolls - maximum number of scroll operationspredicate - - a condition regarding the expected element that is required to be metpublic org.openqa.selenium.WebElement leftUntilPredicate(Path expectedElement, int scrollStep, int maxNumberOfScrolls, Predicate<org.openqa.selenium.WebElement> predicate)
expectedElement - - the element we are looking forscrollStep - - scroll step in pixelsmaxNumberOfScrolls - maximum number of scroll operationspredicate - - a condition regarding the expected element that is required to be metpublic 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 toTopLeftCorner()
public void toTopCorner()
public void toLeftCorner()
public void left(Integer n)
n - pixelspublic void right(Integer n)
n - pixelspublic void up(Integer n)
n - pixelspublic void down(Integer n)
n - pixelsCopyright © 2019. All rights reserved.