Package com.github.loyada.jdollarx
Class InBrowserFinder
- java.lang.Object
-
- com.github.loyada.jdollarx.InBrowserFinder
-
public class InBrowserFinder extends Object
Internal implementation.
-
-
Constructor Summary
Constructors Constructor Description InBrowserFinder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intcountAll(org.openqa.selenium.WebDriver driver, Path el)static List<org.openqa.selenium.WebElement>findAll(org.openqa.selenium.WebDriver driver, Path el)static org.openqa.selenium.WebElementfindPageWithNumberOfOccurrences(org.openqa.selenium.WebDriver driver, Path el, int numberOfOccurrences)static org.openqa.selenium.WebElementfindPageWithNumberOfOccurrences(org.openqa.selenium.WebDriver driver, Path el, int numberOfOccurrences, RelationOperator relationOperator)static List<?>getAttributeOfAll(org.openqa.selenium.WebDriver driver, Path el, String attribute)Extract an attribute from all elements that match the given element.
-
-
-
Method Detail
-
findAll
public static List<org.openqa.selenium.WebElement> findAll(org.openqa.selenium.WebDriver driver, Path el)
-
countAll
public static int countAll(org.openqa.selenium.WebDriver driver, Path el)
-
getAttributeOfAll
public static List<?> getAttributeOfAll(org.openqa.selenium.WebDriver driver, Path el, String attribute)
Extract an attribute from all elements that match the given element. The implementation is optimized.- Parameters:
driver- the driverel- the definition of the elements to matchattribute- the attribute name- Returns:
- List of int/string with all the values of the attribute
-
findPageWithNumberOfOccurrences
public static org.openqa.selenium.WebElement findPageWithNumberOfOccurrences(org.openqa.selenium.WebDriver driver, Path el, int numberOfOccurrences)
-
findPageWithNumberOfOccurrences
public static org.openqa.selenium.WebElement findPageWithNumberOfOccurrences(org.openqa.selenium.WebDriver driver, Path el, int numberOfOccurrences, RelationOperator relationOperator)
-
-