| Package | Description |
|---|---|
| com.github.loyada.jdollarx |
main package for defining Path DOM elements and browser interaction
|
| com.github.loyada.jdollarx.singlebrowser |
Simplified API for interaction with a single instance of browser
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
ElementPropertyWithNumericalBoundaries
Used to define a constraint on a number of elements
|
| Modifier and Type | Field and Description |
|---|---|
static ElementProperty |
ElementProperties.hasChildren
The element has 1 or more children (the opposite from hasNoChildren).
|
static ElementProperty |
ElementProperties.hasNoChildren
The element has no children.
|
static ElementProperty |
ElementProperties.hasSomeText
Element has non-empty text
|
static ElementProperty |
ElementProperties.isChecked
The element is checked
|
static ElementProperty |
ElementProperties.isDisabled
The element is diabled
|
static ElementProperty |
ElementProperties.isEnabled
The element is enabled
|
static ElementProperty |
ElementProperties.isHidden
Element that is hidden.
|
static ElementProperty |
ElementProperties.isLastSibling
The element is the last sibling (ie: last child) of its parent.
|
static ElementProperty |
ElementProperties.isOnlyChild
The element is the only direct child of its parent.
|
static ElementProperty |
ElementProperties.isSelected
The element is selected
|
| Modifier and Type | Method and Description |
|---|---|
default ElementProperty |
ElementProperty.and(ElementProperty prop)
returns a new property, that is a combination of the current property AND the given property parameter.
|
default ElementProperty |
ElementProperty.andNot(ElementProperty prop)
returns a new property, that is equivalent to the current property, BUT NOT the property parameter.
|
static ElementProperty |
ElementProperties.contains(Path... paths)
The given elements in the parameters list are contained in the current element
|
static ElementProperty |
ElementProperties.hasAggregatedCaseSensitiveTextContaining(String txt)
When aggregating all the text under this element, it contains the given substring.
|
static ElementProperty |
ElementProperties.hasAggregatedCaseSensitiveTextEqualTo(String txt)
When aggregating all the text under this element, it equals to the given parameter.
|
static ElementProperty |
ElementProperties.hasAggregatedTextContaining(String txt)
When aggregating all the text under this element, it contains the given substring (ignoring case)
|
static ElementProperty |
ElementProperties.hasAggregatedTextEndingWith(String txt)
When aggregating all the text under this element, it ends with the given substring (ignoring case)
|
static ElementProperty |
ElementProperties.hasAggregatedTextEqualTo(String txt)
When aggregating all the text under this element, it equals to the given parameter.
|
static ElementProperty |
ElementProperties.hasAggregatedTextStartingWith(String txt)
When aggregating all the text under this element, it starts with the given substring (ignoring case)
|
static ElementProperty |
ElementProperties.hasAncesctor(Path path)
Element is inside the given parameter
|
static ElementProperty |
ElementProperties.hasAnyOfClasses(String... cssClasses)
Element that has at least one of the classes given
|
static ElementProperty |
ElementProperties.hasAttribute(String attribute,
String value) |
static ElementProperty |
ElementProperties.hasCaseSensitiveText(String txt)
Element has text equals to the given string parameter.
|
static ElementProperty |
ElementProperties.hasCaseSensitiveTextContaining(String txt)
The text in the element contains the given parameter.
|
static ElementProperty |
ElementProperties.hasChild(Path... paths)
Element is the parent of the given list of elements
|
static ElementProperty |
ElementProperties.hasClass(String className)
Has the class given in the parameter
|
static ElementProperty |
ElementProperties.hasClassContaining(String classSubString)
Element that has a class with name that contain the given parameter
|
static ElementProperty |
ElementProperties.hasClasses(String... cssClasses)
Element that has all of the given classes
|
static ElementProperty |
ElementProperties.hasDescendant(Path... paths)
The given elements in the parameters list are contained in the current element
|
static ElementProperty |
ElementProperties.hasId(String id)
Element has ID equals to the given parameter
|
static ElementProperty |
ElementProperties.hasName(String name)
Element with a "name" attribute equal to the given parameter.
|
static ElementProperty |
ElementProperties.hasNonOfTheClasses(String... cssClasses)
Element that has none of the given classes
|
static ElementProperty |
ElementProperties.hasParent(Path path)
Element is direct child of the element matched by the given parameter
|
static <T,V> ElementProperty |
CustomElementProperties.hasProperty(BiFunction<T,V,ElementProperty> propertyGen,
T t,
V v) |
static <T> ElementProperty |
CustomElementProperties.hasProperty(Function<T,ElementProperty> propertyGen,
T t)
Syntactic sugar that allows to define properties of the form:
|
static ElementProperty |
ElementProperties.hasRawXpathProperty(String rawXpathProps,
String rawExplanation)
Custom property that allows to state the raw expath of a property, and give a string description of it.
|
static ElementProperty |
ElementProperties.hasRole(String role)
Element with a "role" attribute equal to the given role.
|
static ElementProperty |
ElementProperties.hasSource(String src)
Element with a "src" attribute equal to the given parameter.
|
static ElementProperty |
ElementProperties.hasText(String txt)
Element has text equals to the given string parameter, ignoring case.
|
static ElementProperty |
ElementProperties.hasTextContaining(String txt)
The text in the element contains the given parameter, ignoring case
|
static ElementProperty |
ElementProperties.hasTextEndingWith(String txt)
Element has text that ends with the given parameter
|
static ElementProperty |
ElementProperties.hasTextStartingWith(String txt)
Element has text that starts with the given parameter
|
static ElementProperty |
ElementProperties.isAfter(NPath nPath)
Element is after at-least/at-most/exactly the given number of the given element.
|
static ElementProperty |
ElementProperties.isAfter(Path... paths)
Element appears after all the given parameters in the document
|
static ElementProperty |
ElementProperties.isAfterSibling(NPath nPath)
Element is a sibling of the at-least/at-most/exactly n elements given, and appears after them.
|
static ElementProperty |
ElementProperties.isAfterSibling(Path... paths)
Element is a sibling of all the elements defined by the given paths, AND is after all those siblings
|
static ElementProperty |
ElementProperties.isAncestorOf(Path... paths)
The given elements in the parameters list are contained in the current element
|
static ElementProperty |
ElementProperties.isBefore(NPath nPath)
Element is before at-least/at-most/exactly the given number of the given element.
|
static ElementProperty |
ElementProperties.isBefore(Path... paths)
Element is before all the elements given in the parameters
|
static ElementProperty |
ElementProperties.isBeforeSibling(NPath nPath)
Element is a sibling of the at-least/at-most/exactly n elements given, and appears before them.
|
static ElementProperty |
ElementProperties.isBeforeSibling(Path... paths)
Element is a sibling of all the elements defined by the given paths, AND is before all those siblings
|
static ElementProperty |
ElementProperties.isChildOf(Path path)
Element is direct child of the element matched by the given parameter
|
static ElementProperty |
ElementProperties.isContainedIn(Path path) |
static ElementProperty |
ElementProperties.isDescendantOf(Path path)
Element is inside the given parameter
|
static ElementProperty |
ElementProperties.isInside(Path path)
Element is inside the given parameter
|
static ElementProperty |
ElementProperties.isNthFromLastSibling(Integer reverseIndex)
The element is the nth-from-last sibling.
|
static ElementProperty |
ElementProperties.isNthSibling(Integer index)
The element is the nth sibling.
|
static ElementProperty |
ElementProperties.isParentOf(Path... paths)
Element is the parent of the given list of elements
|
static ElementProperty |
ElementProperties.isSiblingOf(Path... paths)
Element is a sibling of all the elements defined by the given paths
|
static ElementProperty |
ElementProperties.isWithIndex(Integer index)
Element that is the nth sibling of its parent
|
static ElementProperty |
ElementProperties.not(ElementProperty prop)
Element does NOT have the given property.
|
default ElementProperty |
ElementProperty.or(ElementProperty prop)
returns a new property, that is a combination of the current property OR the given property parameter.
|
ElementProperty |
ElementPropertyWithNumericalBoundaries.orLess()
Given the a property and and a count of it, returns a property equivalent to at most the count of that property.
|
ElementProperty |
ElementPropertyWithNumericalBoundaries.orMore()
Given the a property and and a count of it, returns a property equivalent to at least the count of that property.
|
static ElementProperty |
ElementProperties.withIndexInRange(int first,
int last)
The index among its siblings is between first and last parameters.
|
| Modifier and Type | Method and Description |
|---|---|
static <T,V> BiFunction<T,V,ElementProperty> |
CustomElementProperties.createPropertyGenerator(BiFunction<T,V,String> xpathCreator,
BiFunction<T,V,String> toStringCreator)
Easy way to define a custom property generator that accepts two parameter.
|
static <T> Function<T,ElementProperty> |
CustomElementProperties.createPropertyGenerator(Function<T,String> xpathCreator,
Function<T,String> toStringCreator)
Easy way to define a custom property generator that accepts a single parameter.
|
List<ElementProperty> |
BasicPath.getElementProperties() |
List<ElementProperty> |
Path.getElementProperties() |
| Modifier and Type | Method and Description |
|---|---|
Path |
BasicPath.and(ElementProperty... prop)
Alias equivalent to that().
|
Path |
Path.and(ElementProperty... prop)
Alias equivalent to
Path.that(com.github.loyada.jdollarx.ElementProperty...). |
default ElementProperty |
ElementProperty.and(ElementProperty prop)
returns a new property, that is a combination of the current property AND the given property parameter.
|
default ElementProperty |
ElementProperty.andNot(ElementProperty prop)
returns a new property, that is equivalent to the current property, BUT NOT the property parameter.
|
static ElementProperty |
ElementProperties.not(ElementProperty prop)
Element does NOT have the given property.
|
default ElementProperty |
ElementProperty.or(ElementProperty prop)
returns a new property, that is a combination of the current property OR the given property parameter.
|
Path |
BasicPath.that(ElementProperty... prop)
returns a path with the provided properties.
|
Path |
Path.that(ElementProperty... prop)
returns a path with the provided properties.
|
| Modifier and Type | Method and Description |
|---|---|
static <T,V> ElementProperty |
CustomElementProperties.hasProperty(BiFunction<T,V,ElementProperty> propertyGen,
T t,
V v) |
static <T> ElementProperty |
CustomElementProperties.hasProperty(Function<T,ElementProperty> propertyGen,
T t)
Syntactic sugar that allows to define properties of the form:
|
BasicPath.PathBuilder |
BasicPath.PathBuilder.withElementProperties(List<ElementProperty> elementProperties) |
| Constructor and Description |
|---|
PathBuilder(Optional<String> insideXpath,
Optional<String> xpath,
Optional<String> xpathExplanation,
Optional<String> describedBy,
Optional<org.openqa.selenium.WebElement> underlying,
List<ElementProperty> elementProperties,
Optional<String> alternateXpath) |
| Modifier and Type | Method and Description |
|---|---|
List<ElementProperty> |
SingleBrowserPath.getElementProperties() |
| Modifier and Type | Method and Description |
|---|---|
Path |
SingleBrowserPath.and(ElementProperty... prop) |
Path |
AgGrid.ensureVisibilityOfCellInColumn(String columnTitle,
ElementProperty cellContent)
Find a specific cell under a column, without knowing the row, ensure it is
displayed, and return its Path
|
Path |
SingleBrowserPath.that(ElementProperty... prop) |
| Modifier and Type | Method and Description |
|---|---|
int |
AgGrid.findRowIndex(Map<String,ElementProperty> row)
Find internal index of row within table.
|
AgGrid.AgGridBuilder |
AgGrid.AgGridBuilder.withRowsAsElementProperties(List<Map<String,ElementProperty>> rows)
Define the rows in the table, in order.
|
AgGrid.AgGridBuilder |
AgGrid.AgGridBuilder.withRowsAsElementPropertiesInOrder(List<List<Map.Entry<String,ElementProperty>>> rows)
Define the rows in the table, in order.
|
Copyright © 2019. All rights reserved.