Operations.ScrollElement¶
-
public static class
ScrollElement
¶ internal implementation not be instantiated directly - Action of scroll within an element
Constructors¶
Methods¶
downUntilElementIsPresent¶
downUntilElementIsPresent¶
-
public WebElement
downUntilElementIsPresent
(Path expectedElement, int scrollStep, int maxNumberOfScrolls)¶ Scroll down until the DOM contains the expected element.
Parameters: - expectedElement –
- the element we are looking for
- scrollStep –
- scroll step in pixels
- maxNumberOfScrolls – maximum number of scroll operations
Returns: the WebElement or throws an exception of not found
- expectedElement –
downUntilPredicate¶
-
public WebElement
downUntilPredicate
(Path expectedElement, Predicate<WebElement> predicate)¶ Scroll down until the DOM contains the expected element, and the given condition for that element is met. Using 40 pixels steps, until the end of the table
Parameters: - expectedElement –
- the element we are looking for
- predicate –
- a condition regarding the expected element that is required to be met
Returns: the WebElement or throws an exception of not found
- expectedElement –
downUntilPredicate¶
-
public WebElement
downUntilPredicate
(Path expectedElement, int scrollStep, int maxNumberOfScrolls, Predicate<WebElement> predicate)¶ Scroll down until the DOM contains the expected element, and the supplied condition for that element is met.
Parameters: - expectedElement –
- the element we are looking for
- scrollStep –
- scroll step in pixels
- maxNumberOfScrolls – maximum number of scroll operations
- predicate –
- a condition regarding the expected element that is required to be met
Returns: the WebElement or throws an exception of not found
- expectedElement –
leftUntilElementIsDisplayed¶
-
public WebElement
leftUntilElementIsDisplayed
(Path expectedElement)¶ Scroll left until the DOM contains the expected element, and it’s displayed. Using 40 pixels steps, until the end of the table
Parameters: - expectedElement –
- the element we are looking for
Returns: the WebElement or throws an exception if not found
- expectedElement –
leftUntilElementIsPresent¶
leftUntilElementIsPresent¶
-
public WebElement
leftUntilElementIsPresent
(Path expectedElement, int scrollStep, int maxNumberOfScrolls)¶ Scroll left until the DOM contains the expected element.
Parameters: - expectedElement –
- the element we are looking for
- scrollStep –
- scroll step in pixels
- maxNumberOfScrolls – maximum number of scroll operations
Returns: the WebElement or throws an exception of not found
- expectedElement –
leftUntilPredicate¶
-
public WebElement
leftUntilPredicate
(Path expectedElement, Predicate<WebElement> predicate)¶ Scroll left until the DOM contains the expected element, and the given predicate regarding that element is met. Using 40 pixels steps, until the end of the table
Parameters: - expectedElement –
- the element we are looking for
- predicate –
- a condition regarding the expected element that is required to be met
Returns: the WebElement or throws an exception of not found
- expectedElement –
leftUntilPredicate¶
-
public WebElement
leftUntilPredicate
(Path expectedElement, int scrollStep, int maxNumberOfScrolls, Predicate<WebElement> predicate)¶ Scroll left until the DOM contains the expected element and the supplied predicate for the element is met.
Parameters: - expectedElement –
- the element we are looking for
- scrollStep –
- scroll step in pixels
- maxNumberOfScrolls – maximum number of scroll operations
- predicate –
- a condition regarding the expected element that is required to be met
Returns: the WebElement or throws an exception of not found
- expectedElement –
rightUntilElementIsPresent¶
-
public WebElement
rightUntilElementIsPresent
(Path expectedElement)¶ Scroll right until the virtualized DOM contains the expect element. Using 40 pixels steps, until the end of the table
Parameters: - expectedElement –
- the element we are looking for
Returns: the WebElement or throws an exception of not found
- expectedElement –
rightUntilElementIsPresent¶
-
public WebElement
rightUntilElementIsPresent
(Path expectedElement, int scrollStep, int maxNumberOfScrolls)¶ Scroll right until the virtualized DOM contains the expect element.
Parameters: - expectedElement –
- the element we are looking for
- scrollStep –
- scroll step in pixels
- maxNumberOfScrolls – maximum number of scroll operations
Returns: the WebElement or throws an exception of not found
- expectedElement –
rightUntilElementIsVisible¶
-
public 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
Parameters: - expectedElement –
- the element we are looking for
Returns: the WebElement or throws an exception of not found
- expectedElement –
rightUntilPredicate¶
-
public WebElement
rightUntilPredicate
(Path expectedElement, Predicate<WebElement> predicate)¶ Scroll right until the DOM contains the expected element, and the given predicate regarding that element is met. Using 40 pixels steps, until the end of the table
Parameters: - expectedElement –
- the element we are looking for
- predicate –
- a condition regarding the expected element that is required to be met
Returns: the WebElement or throws an exception of not found
- expectedElement –
rightUntilPredicate¶
-
public WebElement
rightUntilPredicate
(Path expectedElement, int scrollStep, int maxNumberOfScrolls, Predicate<WebElement> predicate)¶ Scroll right until the DOM contains the expected element and the supplied predicate for the element is met.
Parameters: - expectedElement –
- the element we are looking for
- scrollStep –
- scroll step in pixels
- maxNumberOfScrolls – maximum number of scroll operations
- predicate –
- a condition regarding the expected element that is required to be met
Returns: the WebElement or throws an exception of not found
- expectedElement –
toTopLeftCorner¶
upUntilElementIsPresent¶
upUntilElementIsPresent¶
-
public WebElement
upUntilElementIsPresent
(Path expectedElement, int scrollStep, int maxNumberOfScrolls)¶ Scroll up until the virtualized DOM contains the expect element.
Parameters: - expectedElement –
- the element we are looking for
- scrollStep –
- scroll step in pixels
- maxNumberOfScrolls – maximum number of scroll operations
Returns: the WebElement or throws an exception of not found
- expectedElement –
upUntilPredicate¶
-
public WebElement
upUntilPredicate
(Path expectedElement, Predicate<WebElement> predicate)¶ Scroll up until the DOM contains the expected element, and the given condition for that element is met. Using 40 pixels steps, until the end of the table
Parameters: - expectedElement –
- the element we are looking for
- predicate –
- a condition regarding the expected element that is required to be met
Returns: the WebElement or throws an exception of not found
- expectedElement –
upUntilPredicate¶
-
public WebElement
upUntilPredicate
(Path expectedElement, int scrollStep, int maxNumberOfScrolls, Predicate<WebElement> predicate)¶ Scroll up until the DOM contains the expected element, and the supplied condition for that element is met.
Parameters: - expectedElement –
- the element we are looking for
- scrollStep –
- scroll step in pixels
- maxNumberOfScrolls – maximum number of scroll operations
- predicate –
- a condition regarding the expected element that is required to be met
Returns: the WebElement or throws an exception of not found
- expectedElement –