Class By.ByTagName

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    By

    public static class By.ByTagName
    extends By
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • ByTagName

        public ByTagName​(java.lang.String tagName)
    • Method Detail

      • findElements

        public java.util.List<WebElement> findElements​(SearchContext context)
        Description copied from class: By
        Find many elements.
        Specified by:
        findElements in class By
        Parameters:
        context - A context to use to find the elements.
        Returns:
        A list of WebElements matching the selector.
      • findElement

        public WebElement findElement​(SearchContext context)
        Description copied from class: By
        Find a single element. Override this method if necessary.
        Overrides:
        findElement in class By
        Parameters:
        context - A context to use to find the element.
        Returns:
        The WebElement that matches the selector.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class By