Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Remove excess waits for test page
Browse files Browse the repository at this point in the history
  • Loading branch information
djansen-redhat committed May 4, 2015
1 parent d95ac51 commit 2dbc02f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
11 changes: 0 additions & 11 deletions functional-test/src/main/java/org/zanata/page/AbstractPage.java
Expand Up @@ -87,17 +87,6 @@ public FluentWait<WebDriver> waitForAMoment() {
return ajaxWaitForSec;
}

/**
* Wait for all necessary elements to be available on page.
* @param elementBys
* selenium search criteria for locating elements
*/
public void waitForPage(List<By> elementBys) {
for (final By by : elementBys) {
waitForElementExists(by);
}
}

public Alert switchToAlert() {
return waitForAMoment().withMessage("alert").until(new Function<WebDriver, Alert>() {
@Override
Expand Down
Expand Up @@ -62,13 +62,6 @@ public class RegisterPage extends CorePage {

public RegisterPage(WebDriver driver) {
super(driver);
List<By> elementBys = ImmutableList.<By> builder()
.add(nameField)
.add(emailField)
.add(usernameField)
.add(passwordField)
.add(signUpButton).build();
waitForPage(elementBys);
}

public RegisterPage enterName(String name) {
Expand Down

0 comments on commit 2dbc02f

Please sign in to comment.