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

Commit

Permalink
try to make test more stable
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Huang committed Jan 14, 2014
1 parent 249a1ac commit a68b715
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -52,17 +52,17 @@ public CreateVersionPage(final WebDriver driver) {
super(driver);
}

public CreateVersionPage inputVersionId(String versionId) {
public CreateVersionPage inputVersionId(final String versionId) {
waitForTenSec().until(new Predicate<WebDriver>() {
@Override
public boolean apply(WebDriver input) {
getVersionIdField().clear();
return getVersionIdField().getAttribute("value").equals("");
new Actions(getDriver()).moveToElement(getVersionIdField()).perform();
getVersionIdField().sendKeys(versionId);
defocus();
return true;
}
});
new Actions(getDriver()).moveToElement(getVersionIdField()).perform();
getVersionIdField().sendKeys(versionId);
defocus();
return new CreateVersionPage(getDriver());
}

Expand Down

0 comments on commit a68b715

Please sign in to comment.