Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

waitUntilXyzDoesNotContainxxx / getWindowSize #83

Merged
merged 2 commits into from Jun 22, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -602,6 +602,7 @@ public void maximizeBrowserWindow() {
*
* @return The window <b>width</b> and <b>height</b> in px.
*/
@RobotKeyword
public Object[] getWindowSize() {
Dimension size = getCurrentWebDriver().manage().window().getSize();
return new Object[] { Integer.toString(size.width), Integer.toString(size.height) };
Expand Down
Expand Up @@ -157,6 +157,36 @@ public boolean isFinished() {
});
}

@RobotKeywordOverload
public void waitUntilPageDoesNotContain(String condition, String timeout) {
waitUntilPageDoesNotContain(condition, timeout, null);
}

@RobotKeywordOverload
public void waitUntilPageDoesNotContain(String condition) {
waitUntilPageDoesNotContain(condition, null);
}

/**
* Waits until the current page does not contain <b>text</b>.<br>
* <br>
* Fails, if the timeout expires, before the text disappears. <br>
* <br>
* See `Introduction` for details about timeouts.<br>
*
* @param text
* The text to verify.
* @param timeout
* Default=NONE. Optional timeout interval.
* @param message
* Default=NONE. Optional custom error message.
*/
@RobotKeyword
@ArgumentNames({ "text", "timeout=NONE", "message=NONE" })
public void waitUntilPageDoesNotContain(final String text, String timeout, String message) {
waitUntilPageNotContains(text, timeout, message);
}

@RobotKeywordOverload
public void waitUntilPageContainsElement(String condition) {
waitUntilPageContainsElement(condition, null);
Expand Down Expand Up @@ -237,6 +267,37 @@ public boolean isFinished() {
});
}

@RobotKeywordOverload
public void waitUntilPageDoesNotContainElement(String locator) {
waitUntilPageDoesNotContainElement(locator, null);
}

@RobotKeywordOverload
public void waitUntilPageDoesNotContainElement(String locator, String timeout) {
waitUntilPageDoesNotContainElement(locator, timeout, null);
}

/**
* Waits until the element identified by <b>locator</b> is not found on the
* current page.<br>
* <br>
* Fails, if the timeout expires, before the element disappears. <br>
* <br>
* See `Introduction` for details about locators and timeouts.<br>
*
* @param locator
* The locator to locate the element.
* @param timeout
* Default=NONE. Optional timeout interval.
* @param message
* Default=NONE. Optional custom error message.
*/
@RobotKeyword
@ArgumentNames({ "locator", "timeout=NONE", "message=NONE" })
public void waitUntilPageDoesNotContainElement(final String locator, String timeout, String message) {
waitUntilPageNotContainsElement(locator, timeout, message);
}

@RobotKeywordOverload
public void waitUntilElementIsVisible(String locator, String timeout) {
waitUntilElementIsVisible(locator, timeout, null);
Expand Down