java.lang.Object
org.openqa.selenium.By
net.serenitybdd.core.annotations.findby.By
Direct Known Subclasses:
By, By.ByButtonTextSelector, By.ByjQuerySelector, By.ByScLocator, ByShadowDom

public abstract class By
extends org.openqa.selenium.By
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  By.ByButtonTextSelector  
    static class  By.ByjQuerySelector  
    static class  By.ByScLocator  

    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
  • Constructor Summary

    Constructors
    Constructor Description
    By()  
  • Method Summary

    Modifier and Type Method Description
    static By buttonText​(java.lang.String text)  
    static By jquery​(java.lang.String jQuerySelector)  
    static By sclocator​(java.lang.String scLocator)  

    Methods inherited from class org.openqa.selenium.By

    className, cssSelector, equals, findElement, findElements, hashCode, id, linkText, name, partialLinkText, tagName, toString, xpath

    Methods inherited from class java.lang.Object

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

    • By

      public By()
  • Method Details

    • sclocator

      public static By sclocator​(java.lang.String scLocator)
      Parameters:
      scLocator - The scLocator to use
      Returns:
      a By which locates elements via AutoTest
    • jquery

      public static By jquery​(java.lang.String jQuerySelector)
      Parameters:
      jQuerySelector - The jquery to use
      Returns:
      a By selector object which locates elements via jQuery
    • buttonText

      public static By buttonText​(java.lang.String text)