public class Waiting extends RunOnFailureKeywordsAdapter
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
Waiting.WaitUntilFunction |
| Modifier and Type | Field and Description |
|---|---|
protected BrowserManagement |
browserManagement
Instantiated BrowserManagement keyword bean
|
protected Element |
element
Instantiated Element keyword bean
|
| Constructor and Description |
|---|
Waiting() |
| Modifier and Type | Method and Description |
|---|---|
void |
waitForCondition(String condition) |
void |
waitForCondition(String condition,
String timeout) |
void |
waitForCondition(String condition,
String timeout,
String message)
Waits until the given JavaScript condition is true.
|
protected void |
waitUntil(String timestr,
String message,
Waiting.WaitUntilFunction function) |
void |
waitUntilElementIsClickable(String locator) |
void |
waitUntilElementIsClickable(String locator,
String timeout) |
void |
waitUntilElementIsClickable(String locator,
String timeout,
String message)
Waits until the element identified by locator is clickable.
|
void |
waitUntilElementIsNotClickable(String locator) |
void |
waitUntilElementIsNotClickable(String locator,
String timeout) |
void |
waitUntilElementIsNotClickable(String locator,
String timeout,
String message)
Waits until the element identified by locator is not clickable.
|
void |
waitUntilElementIsNotSelected(String locator) |
void |
waitUntilElementIsNotSelected(String locator,
String timeout) |
void |
waitUntilElementIsNotSelected(String locator,
String timeout,
String message)
Waits until the element identified by locator is not selected.
|
void |
waitUntilElementIsNotVisible(String locator) |
void |
waitUntilElementIsNotVisible(String locator,
String timeout) |
void |
waitUntilElementIsNotVisible(String locator,
String timeout,
String message)
Waits until the element identified by locator is not visible.
|
void |
waitUntilElementIsSelected(String locator) |
void |
waitUntilElementIsSelected(String locator,
String timeout) |
void |
waitUntilElementIsSelected(String locator,
String timeout,
String message)
Waits until the element identified by locator is selected.
|
void |
waitUntilElementIsSuccessfullyClicked(String locator) |
void |
waitUntilElementIsSuccessfullyClicked(String locator,
String timeout) |
void |
waitUntilElementIsSuccessfullyClicked(String locator,
String timeout,
String message)
Waits until the element identified by locator is sucessfully
clicked on.
|
void |
waitUntilElementIsVisible(String locator) |
void |
waitUntilElementIsVisible(String locator,
String timeout) |
void |
waitUntilElementIsVisible(String locator,
String timeout,
String message)
Waits until the element identified by locator is visible.
|
void |
waitUntilPageContains(String condition) |
void |
waitUntilPageContains(String condition,
String timeout) |
void |
waitUntilPageContains(String text,
String timeout,
String message)
Waits until the current page contains text.
|
void |
waitUntilPageContainsElement(String condition) |
void |
waitUntilPageContainsElement(String condition,
String timeout) |
void |
waitUntilPageContainsElement(String locator,
String timeout,
String message)
Waits until the element identified by locator is found on the
current page.
|
void |
waitUntilPageNotContains(String condition) |
void |
waitUntilPageNotContains(String condition,
String timeout) |
void |
waitUntilPageNotContains(String text,
String timeout,
String message)
Waits until the current page does not contain text.
|
void |
waitUntilPageNotContainsElement(String locator) |
void |
waitUntilPageNotContainsElement(String locator,
String timeout) |
void |
waitUntilPageNotContainsElement(String locator,
String timeout,
String message)
Waits until the element identified by locator is not found on the
current page.
|
void |
waitUntilTitleContains(String title) |
void |
waitUntilTitleContains(String title,
String timeout) |
void |
waitUntilTitleContains(String title,
String timeout,
String message)
Waits until the current page title contains title.
|
void |
waitUntilTitleIs(String title) |
void |
waitUntilTitleIs(String title,
String timeout) |
void |
waitUntilTitleIs(String title,
String timeout,
String message)
Waits until the current page title is exactly title.
|
void |
waitUntilTitleIsNot(String title) |
void |
waitUntilTitleIsNot(String title,
String timeout) |
void |
waitUntilTitleIsNot(String title,
String timeout,
String message)
Waits until the current page title is not exactly title.
|
void |
waitUntilTitleNotContains(String title) |
void |
waitUntilTitleNotContains(String title,
String timeout) |
void |
waitUntilTitleNotContains(String title,
String timeout,
String message)
Waits until the current page title does not contain title.
|
runOnFailureByAspectJprotected BrowserManagement browserManagement
protected Element element
public void waitForCondition(String condition)
public void waitForCondition(String condition, String timeout, String message)
condition - The JavaScript condition returning a boolean.timeout - Default=NONE. Optional timeout interval.message - Default=NONE. Optional custom error message.public void waitUntilPageContains(String condition)
public void waitUntilPageContains(String text, String timeout, String message)
text - The text to verify.timeout - Default=NONE. Optional timeout interval.message - Default=NONE. Optional custom error message.public void waitUntilPageNotContains(String condition)
public void waitUntilPageNotContains(String text, String timeout, String message)
text - The text to verify.timeout - Default=NONE. Optional timeout interval.message - Default=NONE. Optional custom error message.public void waitUntilPageContainsElement(String condition)
public void waitUntilPageContainsElement(String condition, String timeout)
public void waitUntilPageContainsElement(String locator, String timeout, String message)
locator - The locator to locate the element.timeout - Default=NONE. Optional timeout interval.message - Default=NONE. Optional custom error message.public void waitUntilPageNotContainsElement(String locator)
public void waitUntilPageNotContainsElement(String locator, String timeout)
public void waitUntilPageNotContainsElement(String locator, String timeout, String message)
locator - The locator to locate the element.timeout - Default=NONE. Optional timeout interval.message - Default=NONE. Optional custom error message.public void waitUntilElementIsVisible(String locator)
public void waitUntilElementIsVisible(String locator, String timeout, String message)
locator - The locator to locate the element.timeout - Default=NONE. Optional timeout interval.message - Default=NONE. Optional custom error message.public void waitUntilElementIsNotVisible(String locator, String timeout)
public void waitUntilElementIsNotVisible(String locator)
public void waitUntilElementIsNotVisible(String locator, String timeout, String message)
locator - The locator to locate the element.timeout - Default=NONE. Optional timeout interval.message - Default=NONE. Optional custom error message.public void waitUntilElementIsClickable(String locator)
public void waitUntilElementIsClickable(String locator, String timeout, String message)
locator - The locator to locate the element.timeout - Default=NONE. Optional timeout interval.message - Default=NONE. Optional custom error message.public void waitUntilElementIsNotClickable(String locator, String timeout)
public void waitUntilElementIsNotClickable(String locator)
public void waitUntilElementIsNotClickable(String locator, String timeout, String message)
locator - The locator to locate the element.timeout - Default=NONE. Optional timeout interval.message - Default=NONE. Optional custom error message.public void waitUntilElementIsSuccessfullyClicked(String locator, String timeout)
public void waitUntilElementIsSuccessfullyClicked(String locator)
public void waitUntilElementIsSuccessfullyClicked(String locator, String timeout, String message)
locator - The locator to locate the element.timeout - Default=NONE. Optional timeout interval.message - Default=NONE. Optional custom error message.public void waitUntilElementIsSelected(String locator)
public void waitUntilElementIsSelected(String locator, String timeout, String message)
locator - The locator to locate the element.timeout - Default=NONE. Optional timeout interval.message - Default=NONE. Optional custom error message.public void waitUntilElementIsNotSelected(String locator, String timeout)
public void waitUntilElementIsNotSelected(String locator)
public void waitUntilElementIsNotSelected(String locator, String timeout, String message)
locator - The locator to locate the element.timeout - Default=NONE. Optional timeout interval.message - Default=NONE. Optional custom error message.public void waitUntilTitleContains(String title)
public void waitUntilTitleContains(String title, String timeout, String message)
title - The title to verify.timeout - Default=NONE. Optional timeout interval.message - Default=NONE. Optional custom error message.public void waitUntilTitleNotContains(String title)
public void waitUntilTitleNotContains(String title, String timeout, String message)
title - The title to verify.timeout - Default=NONE. Optional timeout interval.message - Default=NONE. Optional custom error message.public void waitUntilTitleIs(String title)
public void waitUntilTitleIs(String title, String timeout, String message)
title - The title to verify.timeout - Default=NONE. Optional timeout interval.message - Default=NONE. Optional custom error message.public void waitUntilTitleIsNot(String title)
public void waitUntilTitleIsNot(String title, String timeout, String message)
title - The title to verify.timeout - Default=NONE. Optional timeout interval.message - Default=NONE. Optional custom error message.protected void waitUntil(String timestr, String message, Waiting.WaitUntilFunction function)
Copyright © 2014. All rights reserved.