Class ByAttribute

java.lang.Object
org.openqa.selenium.By
org.openqa.selenium.By.ByCssSelector
com.codeborne.selenide.selector.ByAttribute
All Implemented Interfaces:
org.openqa.selenium.By.Remotable

@ParametersAreNonnullByDefault public class ByAttribute extends org.openqa.selenium.By.ByCssSelector
  • 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
  • Constructor Summary

    Constructors
    Constructor
    Description
    ByAttribute(String attributeName, String attributeValue)
     
  • 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.ByCssSelector

    toString

    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

    • ByAttribute

      public ByAttribute(String attributeName, String attributeValue)
  • Method Details

    • 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()