Class ByText

java.lang.Object
org.openqa.selenium.By
org.openqa.selenium.By.ByXPath
com.codeborne.selenide.selector.ByTagAndText
com.codeborne.selenide.selector.ByText
All Implemented Interfaces:
org.openqa.selenium.By.Remotable

@ParametersAreNonnullByDefault public class ByText extends ByTagAndText
  • 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 inherited from class com.codeborne.selenide.selector.ByTagAndText

    elementText, tag
  • Constructor Summary

    Constructors
    Constructor
    Description
    ByText(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
  • Constructor Details

    • ByText

      public ByText(String elementText)
  • Method Details

    • toString

      @CheckReturnValue @Nonnull public String toString()
      Overrides:
      toString in class ByTagAndText
    • 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()