com.atlassian.webdriver.utils
Class Search
java.lang.Object
com.atlassian.webdriver.utils.Search
public class Search
- extends Object
Search utilties
|
Method Summary |
static org.openqa.selenium.WebElement |
findElementWithChildElement(org.openqa.selenium.By searchElements,
org.openqa.selenium.By childFind,
org.openqa.selenium.WebDriver driver)
Searches for an element that contains a specific child element. |
static org.openqa.selenium.WebElement |
findElementWithChildElement(org.openqa.selenium.By searchElements,
org.openqa.selenium.By childFind,
org.openqa.selenium.WebElement context)
|
static org.openqa.selenium.WebElement |
findElementWithText(org.openqa.selenium.By searchElements,
String textValue,
org.openqa.selenium.WebDriver driver)
|
static org.openqa.selenium.WebElement |
findElementWithText(org.openqa.selenium.By searchElements,
String textValue,
org.openqa.selenium.WebElement context)
|
static List<org.openqa.selenium.WebElement> |
findVisibleElements(org.openqa.selenium.By searchElements,
org.openqa.selenium.SearchContext context)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
findElementWithChildElement
public static org.openqa.selenium.WebElement findElementWithChildElement(org.openqa.selenium.By searchElements,
org.openqa.selenium.By childFind,
org.openqa.selenium.WebDriver driver)
- Searches for an element that contains a specific child element. This is useful when multiple
elements on a page are the same but a child node is unqiue.
- Parameters:
searchElements - the parent elements to look for the child element within.childFind - The child to look for.
- Returns:
- The parent web element that contains the child element.
findElementWithChildElement
public static org.openqa.selenium.WebElement findElementWithChildElement(org.openqa.selenium.By searchElements,
org.openqa.selenium.By childFind,
org.openqa.selenium.WebElement context)
findElementWithText
public static org.openqa.selenium.WebElement findElementWithText(org.openqa.selenium.By searchElements,
String textValue,
org.openqa.selenium.WebDriver driver)
findElementWithText
public static org.openqa.selenium.WebElement findElementWithText(org.openqa.selenium.By searchElements,
String textValue,
org.openqa.selenium.WebElement context)
findVisibleElements
public static List<org.openqa.selenium.WebElement> findVisibleElements(org.openqa.selenium.By searchElements,
org.openqa.selenium.SearchContext context)
Copyright © 2014 Atlassian. All rights reserved.