Class InBrowserFinder


  • public class InBrowserFinder
    extends Object
    Internal implementation.
    • Constructor Detail

      • InBrowserFinder

        public InBrowserFinder()
    • 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 driver
        el - the definition of the elements to match
        attribute - 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)