public class DOM extends Selenide
defaultWaitingTimeout| Constructor and Description |
|---|
DOM() |
| Modifier and Type | Method and Description |
|---|---|
static ShouldableWebElement |
assertChecked(org.openqa.selenium.By criteria)
Deprecated.
Use $(criteria).shouldBe(selected)
|
static ShouldableWebElement |
assertDisabled(org.openqa.selenium.By selector)
Deprecated.
Use $(selector).shouldBe(disabled)
|
static ShouldableWebElement |
assertElement(org.openqa.selenium.By selector,
Condition condition) |
static ShouldableWebElement |
assertElement(org.openqa.selenium.WebElement element,
Condition condition) |
static ShouldableWebElement |
assertEnabled(org.openqa.selenium.By selector)
Deprecated.
Use $(selector).shouldBe(enabled)
|
static ShouldableWebElement |
assertHidden(org.openqa.selenium.By selector)
Deprecated.
Use $(selector).shouldBe(hidden);
|
static ShouldableWebElement |
assertNotChecked(org.openqa.selenium.By criteria)
Deprecated.
Use $(criteria).shouldNotBe(selected)
|
static ShouldableWebElement |
assertNotSelected(org.openqa.selenium.By selector)
Deprecated.
Use $(selector).shouldNotBe(selected)
|
static ShouldableWebElement |
assertSelected(org.openqa.selenium.By selector)
Deprecated.
Use $(selector).shouldBe(selected)
|
static ShouldableWebElement |
assertVisible(org.openqa.selenium.By selector)
Deprecated.
Use $(selector).shouldBe(visible);
|
static void |
callOnClick(org.openqa.selenium.By by)
Calls onclick javascript code, useful for invisible (hovered) elements that cannot be clicked directly
|
static void |
click(org.openqa.selenium.By by) |
static void |
click(org.openqa.selenium.By by,
int index)
Deprecated.
Use $(by, index).click()
Click the Nth matched element on the page.
|
static java.lang.String |
describeElement(org.openqa.selenium.WebElement element)
Deprecated.
Use $("selector").toString()
|
static void |
executeJQueryMethod(org.openqa.selenium.By by,
java.lang.String method)
Deprecated.
|
static boolean |
existsAndVisible(org.openqa.selenium.By selector) |
static void |
followLink(org.openqa.selenium.By selector)
Deprecated.
Use $(selector).followLink();
|
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)
Deprecated.
Use $(selector).isDisplayed()
|
static void |
scrollTo(org.openqa.selenium.By element)
Deprecated.
|
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 void |
setValue(org.openqa.selenium.By by,
int index,
java.lang.String value)
Deprecated.
Use $(by, index).setValue(value)
|
static void |
setValue(org.openqa.selenium.By by,
java.lang.String value)
Deprecated.
Use $(by).setValue(value)
|
static void |
setValue(org.openqa.selenium.WebElement element,
java.lang.String value) |
static void |
triggerChangeEvent(org.openqa.selenium.By by)
Deprecated.
|
static void |
triggerChangeEvent(org.openqa.selenium.By by,
int index)
Deprecated.
|
static ShouldableWebElement |
waitFor(org.openqa.selenium.By elementSelector) |
static ShouldableWebElement |
waitFor(org.openqa.selenium.By elementSelector,
Condition condition)
Deprecated.
Use $(elementSelector).shouldBe(condition)
|
static ShouldableWebElement |
waitFor(org.openqa.selenium.By elementSelector,
Condition condition,
long timeoutMs)
Deprecated.
Use $(elementSelector).waitUntil(condition, timeoutMs);
|
static ShouldableWebElement |
waitFor(org.openqa.selenium.By elementSelector,
int index,
Condition condition,
long timeoutMs)
Deprecated.
Use $(elementSelector, index).waitUntil(condition, timeoutMs);
|
static ShouldableWebElement |
waitFor(java.lang.String cssSelector) |
static ShouldableWebElement |
waitUntil(org.openqa.selenium.By elementSelector,
Condition condition) |
static ShouldableWebElement |
waitUntil(org.openqa.selenium.By elementSelector,
Condition condition,
long timeoutMs) |
static ShouldableWebElement |
waitUntil(org.openqa.selenium.By elementSelector,
int index,
Condition condition) |
static ShouldableWebElement |
waitUntil(org.openqa.selenium.By elementSelector,
int index,
Condition condition,
long timeoutMs) |
static ShouldableWebElement |
waitUntil(java.lang.String cssSelector,
Condition condition) |
static ShouldableWebElement |
waitUntil(java.lang.String cssSelector,
Condition condition,
long timeoutMs) |
static ShouldableWebElement |
waitUntil(java.lang.String cssSelector,
int index,
Condition condition) |
static ShouldableWebElement |
waitUntil(java.lang.String cssSelector,
int index,
Condition condition,
long timeoutMs) |
static ShouldableWebElement |
waitUntil(org.openqa.selenium.WebElement parent,
org.openqa.selenium.By elementSelector,
int index,
Condition condition) |
static ShouldableWebElement |
waitUntil(org.openqa.selenium.WebElement parent,
org.openqa.selenium.By elementSelector,
int index,
Condition condition,
long timeoutMs) |
$, $, $, $, $, $, $, $, $$, $$, $$, $$, confirm, dismiss, executeJavaScript, getElement, getElement, getElements, getSelectedRadio, page, page, selectRadio, switchTo@Deprecated
public static void setValue(org.openqa.selenium.By by,
java.lang.String value)
@Deprecated
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 callOnClick(org.openqa.selenium.By by)
@Deprecated
public static void click(org.openqa.selenium.By by,
int index)
by - selector to match elementindex - 0..Njava.lang.IllegalArgumentException - if index is bigger than number of matched elements.@Deprecated public static void triggerChangeEvent(org.openqa.selenium.By by)
@Deprecated
public static void triggerChangeEvent(org.openqa.selenium.By by,
int index)
@Deprecated
public static void executeJQueryMethod(org.openqa.selenium.By by,
java.lang.String method)
@Deprecated public static void scrollTo(org.openqa.selenium.By element)
element - HTML element to scroll to.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 selector)
@Deprecated public static void followLink(org.openqa.selenium.By selector)
@Deprecated public static ShouldableWebElement assertChecked(org.openqa.selenium.By criteria)
@Deprecated public static ShouldableWebElement assertNotChecked(org.openqa.selenium.By criteria)
@Deprecated public static ShouldableWebElement assertDisabled(org.openqa.selenium.By selector)
@Deprecated public static ShouldableWebElement assertEnabled(org.openqa.selenium.By selector)
@Deprecated public static ShouldableWebElement assertSelected(org.openqa.selenium.By selector)
@Deprecated public static ShouldableWebElement assertNotSelected(org.openqa.selenium.By selector)
@Deprecated public static boolean isVisible(org.openqa.selenium.By selector)
@Deprecated public static ShouldableWebElement assertVisible(org.openqa.selenium.By selector)
@Deprecated public static ShouldableWebElement assertHidden(org.openqa.selenium.By selector)
public static ShouldableWebElement assertElement(org.openqa.selenium.By selector, Condition condition)
public static ShouldableWebElement assertElement(org.openqa.selenium.WebElement element, Condition condition)
public static ShouldableWebElement waitFor(org.openqa.selenium.By elementSelector)
public static ShouldableWebElement waitFor(java.lang.String cssSelector)
@Deprecated public static ShouldableWebElement waitFor(org.openqa.selenium.By elementSelector, Condition condition)
public static ShouldableWebElement waitUntil(org.openqa.selenium.By elementSelector, Condition condition)
public static ShouldableWebElement waitUntil(java.lang.String cssSelector, Condition condition)
public static ShouldableWebElement waitUntil(org.openqa.selenium.By elementSelector, int index, Condition condition)
public static ShouldableWebElement waitUntil(java.lang.String cssSelector, int index, Condition condition)
@Deprecated public static ShouldableWebElement waitFor(org.openqa.selenium.By elementSelector, Condition condition, long timeoutMs)
public static ShouldableWebElement waitUntil(org.openqa.selenium.By elementSelector, Condition condition, long timeoutMs)
public static ShouldableWebElement waitUntil(java.lang.String cssSelector, Condition condition, long timeoutMs)
@Deprecated public static ShouldableWebElement waitFor(org.openqa.selenium.By elementSelector, int index, Condition condition, long timeoutMs)
public static ShouldableWebElement waitUntil(java.lang.String cssSelector, int index, Condition condition, long timeoutMs)
public static ShouldableWebElement waitUntil(org.openqa.selenium.By elementSelector, int index, Condition condition, long timeoutMs)
public static ShouldableWebElement waitUntil(org.openqa.selenium.WebElement parent, org.openqa.selenium.By elementSelector, int index, Condition condition)
public static ShouldableWebElement waitUntil(org.openqa.selenium.WebElement parent, org.openqa.selenium.By elementSelector, int index, Condition condition, long timeoutMs)
@Deprecated public static java.lang.String describeElement(org.openqa.selenium.WebElement element)