Class By.ByPartialLinkText

java.lang.Object
org.openqa.selenium.By
org.openqa.selenium.By.ByPartialLinkText
All Implemented Interfaces:
By.Remotable
Enclosing class:
By

public static class By.ByPartialLinkText extends By
  • Constructor Details

    • ByPartialLinkText

      public ByPartialLinkText(String partialLinkText)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class By
    • 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.
    • findElements

      public 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.
    • getRemoteParameters

      public final By.Remotable.Parameters getRemoteParameters()
      Specified by:
      getRemoteParameters in interface By.Remotable
    • toJson

      protected final Map<String,Object> toJson()