Skip to content

Commit

Permalink
Lower unnecessarily high wait time
Browse files Browse the repository at this point in the history
  • Loading branch information
BalusC committed Feb 11, 2024
1 parent f44da03 commit 79e3939
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ public void test() throws Exception {

public void testCommandScript() throws Exception {
WebPage page = getPage("spec613.xhtml");
page.wait(Duration.ofMillis(60000));
page.wait(Duration.ofMillis(3000));
ExtendedWebDriver webDriver = getWebDriver();
assertTrue(webDriver.findElement(By.id("result")).getText().equals("foo"));

webDriver.getJSExecutor().executeScript("bar()");
page.wait(Duration.ofMillis(60000));
page.wait(Duration.ofMillis(3000));
assertTrue(webDriver.findElement(By.id("result")).getText().equals("bar"));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void test() throws Exception {

public void testSearchExpression() throws Exception {
WebPage page = getPage("spec1238.xhtml");
page.wait(Duration.ofMillis(60000));
page.wait(Duration.ofMillis(3000));

ExtendedWebDriver webDriver = getWebDriver();
WebElement label = webDriver.findElement(By.id("label"));
Expand Down

0 comments on commit 79e3939

Please sign in to comment.