org.openqa.selenium.support
Class ByIdOrName
java.lang.Object
org.openqa.selenium.By
org.openqa.selenium.support.ByIdOrName
public class ByIdOrName
- extends By
ByIdOrName
public ByIdOrName(String idOrName)
findElement
public WebElement findElement(SearchContext context)
- Description copied from class:
By
- Find a single element. Override this method if necessary.
- Overrides:
findElement
in class By
- Parameters:
context
- A context to use to find the element
- Returns:
- The WebElement that matches the selector
findElements
public List<WebElement> findElements(SearchContext context)
- Description copied from class:
By
- Find many elements.
- Specified by:
findElements
in class By
- Parameters:
context
- A context to use to find the element
- Returns:
- A list of WebElements matching the selector
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2011. All Rights Reserved.