public class DOM
extends java.lang.Object
| Constructor and Description |
|---|
DOM() |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertChecked(org.openqa.selenium.By element) |
static void |
assertDisabled(org.openqa.selenium.By element) |
static org.openqa.selenium.WebElement |
assertElement(org.openqa.selenium.By selector,
Condition condition) |
static void |
assertEnabled(org.openqa.selenium.By element) |
static org.openqa.selenium.WebElement |
assertHidden(org.openqa.selenium.By selector)
Method fails if element does not exists.
|
static void |
assertNotChecked(org.openqa.selenium.By element) |
static void |
assertNotSelected(org.openqa.selenium.By element) |
static void |
assertSelected(org.openqa.selenium.By element) |
static org.openqa.selenium.WebElement |
assertVisible(org.openqa.selenium.By selector) |
static void |
click(org.openqa.selenium.By by) |
static void |
click(org.openqa.selenium.By by,
int index)
Click the Nth matched element on the page.
|
static java.lang.String |
describeElement(org.openqa.selenium.WebElement element) |
static java.lang.Object |
executeJavaScript(java.lang.String jsCode) |
static boolean |
existsAndVisible(org.openqa.selenium.By logoutLink) |
static void |
followLink(org.openqa.selenium.By by) |
static org.openqa.selenium.WebElement |
getElement(org.openqa.selenium.By by) |
static org.openqa.selenium.WebElement |
getElement(org.openqa.selenium.By by,
int index) |
static java.util.List<org.openqa.selenium.WebElement> |
getElements(org.openqa.selenium.By by) |
static java.lang.String |
getJQuerySelector(org.openqa.selenium.By seleniumSelector) |
static java.lang.String |
getJQuerySelectorString(org.openqa.selenium.By seleniumSelector) |
static java.lang.String |
getSelectedText(org.openqa.selenium.By selectField) |
static java.lang.String |
getSelectedValue(org.openqa.selenium.By selectField) |
static boolean |
isJQueryAvailable() |
static boolean |
isVisible(org.openqa.selenium.By selector) |
static void |
scrollTo(org.openqa.selenium.By element)
It works only if jQuery "scroll" plugin is included in page being tested
|
static org.openqa.selenium.support.ui.Select |
select(org.openqa.selenium.By selectField) |
static void |
selectOption(org.openqa.selenium.By selectField,
java.lang.String value) |
static void |
selectOptionByText(org.openqa.selenium.By selectField,
java.lang.String text) |
static org.openqa.selenium.WebElement |
selectRadio(org.openqa.selenium.By radioField,
java.lang.String value) |
static void |
setValue(org.openqa.selenium.By by,
int index,
java.lang.String value) |
static void |
setValue(org.openqa.selenium.By by,
java.lang.String value) |
static void |
setValue(org.openqa.selenium.WebElement element,
java.lang.String value) |
static void |
triggerChangeEvent(org.openqa.selenium.By by) |
static void |
triggerChangeEvent(org.openqa.selenium.By by,
int index) |
static org.openqa.selenium.WebElement |
waitFor(org.openqa.selenium.By elementSelector) |
static org.openqa.selenium.WebElement |
waitFor(org.openqa.selenium.By elementSelector,
Condition condition)
Deprecated.
|
static org.openqa.selenium.WebElement |
waitFor(org.openqa.selenium.By elementSelector,
Condition condition,
long milliseconds)
Deprecated.
|
static org.openqa.selenium.WebElement |
waitFor(org.openqa.selenium.By elementSelector,
int index,
Condition condition,
long milliseconds)
Deprecated.
|
static org.openqa.selenium.WebElement |
waitUntil(org.openqa.selenium.By elementSelector,
Condition condition) |
static org.openqa.selenium.WebElement |
waitUntil(org.openqa.selenium.By elementSelector,
Condition condition,
long milliseconds) |
static org.openqa.selenium.WebElement |
waitUntil(org.openqa.selenium.By elementSelector,
int index,
Condition condition) |
static org.openqa.selenium.WebElement |
waitUntil(org.openqa.selenium.By elementSelector,
int index,
Condition condition,
long milliseconds) |
public static org.openqa.selenium.WebElement getElement(org.openqa.selenium.By by)
public static org.openqa.selenium.WebElement getElement(org.openqa.selenium.By by,
int index)
public static java.util.List<org.openqa.selenium.WebElement> getElements(org.openqa.selenium.By by)
public static void setValue(org.openqa.selenium.By by,
java.lang.String value)
public static void setValue(org.openqa.selenium.By by,
int index,
java.lang.String value)
public static void setValue(org.openqa.selenium.WebElement element,
java.lang.String value)
public static boolean isJQueryAvailable()
public static void click(org.openqa.selenium.By by)
public static void click(org.openqa.selenium.By by,
int index)
by - selector to match elementindex - is zero-basedjava.lang.IllegalArgumentException - if index is bigger than number of matched elements.public static void triggerChangeEvent(org.openqa.selenium.By by)
public static void triggerChangeEvent(org.openqa.selenium.By by,
int index)
public static java.lang.String getJQuerySelector(org.openqa.selenium.By seleniumSelector)
public static java.lang.String getJQuerySelectorString(org.openqa.selenium.By seleniumSelector)
public static java.lang.String describeElement(org.openqa.selenium.WebElement element)
public static java.lang.Object executeJavaScript(java.lang.String jsCode)
public static void scrollTo(org.openqa.selenium.By element)
element - HTML element to scroll to.public static org.openqa.selenium.WebElement selectRadio(org.openqa.selenium.By radioField,
java.lang.String value)
public static java.lang.String getSelectedValue(org.openqa.selenium.By selectField)
public static java.lang.String getSelectedText(org.openqa.selenium.By selectField)
public static org.openqa.selenium.support.ui.Select select(org.openqa.selenium.By selectField)
public static void selectOption(org.openqa.selenium.By selectField,
java.lang.String value)
public static void selectOptionByText(org.openqa.selenium.By selectField,
java.lang.String text)
public static boolean existsAndVisible(org.openqa.selenium.By logoutLink)
public static void followLink(org.openqa.selenium.By by)
public static void assertChecked(org.openqa.selenium.By element)
public static void assertNotChecked(org.openqa.selenium.By element)
public static void assertDisabled(org.openqa.selenium.By element)
public static void assertEnabled(org.openqa.selenium.By element)
public static void assertSelected(org.openqa.selenium.By element)
public static void assertNotSelected(org.openqa.selenium.By element)
public static boolean isVisible(org.openqa.selenium.By selector)
public static org.openqa.selenium.WebElement assertVisible(org.openqa.selenium.By selector)
public static org.openqa.selenium.WebElement assertHidden(org.openqa.selenium.By selector)
public static org.openqa.selenium.WebElement assertElement(org.openqa.selenium.By selector,
Condition condition)
public static org.openqa.selenium.WebElement waitFor(org.openqa.selenium.By elementSelector)
@Deprecated
public static org.openqa.selenium.WebElement waitFor(org.openqa.selenium.By elementSelector,
Condition condition)
public static org.openqa.selenium.WebElement waitUntil(org.openqa.selenium.By elementSelector,
Condition condition)
public static org.openqa.selenium.WebElement waitUntil(org.openqa.selenium.By elementSelector,
int index,
Condition condition)
@Deprecated
public static org.openqa.selenium.WebElement waitFor(org.openqa.selenium.By elementSelector,
Condition condition,
long milliseconds)
public static org.openqa.selenium.WebElement waitUntil(org.openqa.selenium.By elementSelector,
Condition condition,
long milliseconds)
@Deprecated
public static org.openqa.selenium.WebElement waitFor(org.openqa.selenium.By elementSelector,
int index,
Condition condition,
long milliseconds)
public static org.openqa.selenium.WebElement waitUntil(org.openqa.selenium.By elementSelector,
int index,
Condition condition,
long milliseconds)