Package com.codeborne.selenide.selector
Class FocusedElementLocator
java.lang.Object
org.openqa.selenium.By
com.codeborne.selenide.selector.FocusedElementLocator
@ParametersAreNonnullByDefault
public class FocusedElementLocator
extends org.openqa.selenium.By
Subclass of `By` to find the element currently being focused
- Since:
- 6.18.0
-
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.openqa.selenium.WebElement
findElement
(org.openqa.selenium.SearchContext context) List<org.openqa.selenium.WebElement>
findElements
(org.openqa.selenium.SearchContext context) Methods inherited from class org.openqa.selenium.By
className, cssSelector, equals, getJavascriptExecutor, getWebDriver, hashCode, id, linkText, name, partialLinkText, tagName, toString, xpath
-
Constructor Details
-
FocusedElementLocator
public FocusedElementLocator()
-
-
Method Details
-
findElement
@Nonnull @CheckReturnValue public org.openqa.selenium.WebElement findElement(org.openqa.selenium.SearchContext context) - Overrides:
findElement
in classorg.openqa.selenium.By
-
findElements
@Nonnull @CheckReturnValue public List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.SearchContext context) - Specified by:
findElements
in classorg.openqa.selenium.By
-