public class ByJQuery
extends org.openqa.selenium.By
| Modifier and Type | Class and Description |
|---|---|
static class |
ByJQuery.JQueryLocationStrategy
Location strategy for searching for elements using jQuery selectors
|
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 and Description |
|---|
ByJQuery(String selector)
Instantiates new locator with given jQuery selector
|
| Modifier and Type | Method and Description |
|---|---|
org.openqa.selenium.WebElement |
findElement(org.openqa.selenium.SearchContext context) |
List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.SearchContext context) |
static ByJQuery |
selector(String selector)
Instantiates new locator with given jQuery selector
|
String |
toString() |
public ByJQuery(String selector)
selector - the jQuery selectorpublic static ByJQuery selector(String selector)
selector - the jQuery selectorpublic org.openqa.selenium.WebElement findElement(org.openqa.selenium.SearchContext context)
findElement in class org.openqa.selenium.Bypublic List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.SearchContext context)
findElements in class org.openqa.selenium.Bypublic String toString()
toString in class org.openqa.selenium.ByCopyright © 2014 JBoss by Red Hat. All rights reserved.