Class WithTagAndText

java.lang.Object
org.openqa.selenium.By
org.openqa.selenium.By.ByXPath
com.codeborne.selenide.selector.WithTagAndText
All Implemented Interfaces:
org.openqa.selenium.By.Remotable
Direct Known Subclasses:
WithText

@ParametersAreNonnullByDefault public class WithTagAndText extends org.openqa.selenium.By.ByXPath
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.openqa.selenium.By

    org.openqa.selenium.By.ByClassName, org.openqa.selenium.By.ByCssSelector, org.openqa.selenium.By.ById, org.openqa.selenium.By.ByLinkText, org.openqa.selenium.By.ByName, org.openqa.selenium.By.ByPartialLinkText, org.openqa.selenium.By.ByTagName, org.openqa.selenium.By.ByXPath, org.openqa.selenium.By.Remotable

    Nested classes/interfaces inherited from interface org.openqa.selenium.By.Remotable

    org.openqa.selenium.By.Remotable.Parameters
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final String
     
    protected final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    WithTagAndText(String tag, String elementText)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.openqa.selenium.WebElement
    findElement(org.openqa.selenium.SearchContext arg0)
     
    List<org.openqa.selenium.WebElement>
    findElements(org.openqa.selenium.SearchContext arg0)
     
    final org.openqa.selenium.By.Remotable.Parameters
     
    protected final Map<String,Object>
     
     

    Methods inherited from class org.openqa.selenium.By

    className, cssSelector, equals, getJavascriptExecutor, getWebDriver, hashCode, id, linkText, name, partialLinkText, tagName, xpath

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • tag

      protected final String tag
    • elementText

      protected final String elementText
  • Constructor Details

    • WithTagAndText

      public WithTagAndText(String tag, String elementText)
  • Method Details

    • toString

      @CheckReturnValue @Nonnull public String toString()
      Overrides:
      toString in class org.openqa.selenium.By.ByXPath
    • findElement

      public org.openqa.selenium.WebElement findElement(org.openqa.selenium.SearchContext arg0)
      Overrides:
      findElement in class org.openqa.selenium.By
    • findElements

      public List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.SearchContext arg0)
      Specified by:
      findElements in class org.openqa.selenium.By
    • getRemoteParameters

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

      protected final Map<String,Object> toJson()