Skip to content

Commit

Permalink
Fixed a bug with custom waits on XPath/CSS Targets
Browse files Browse the repository at this point in the history
  • Loading branch information
wakaleo committed Jun 23, 2019
1 parent 33b58b4 commit 7304285
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,12 @@ public void weCanSpecifyADelayForAParticularElement() {
Actor aster = Actor.named("Aster").whoCan(BrowseTheWeb.with(driver));

Target CITY = Target.the("City field")
.locatedBy("#city");
.locatedBy("#city")
.waitingForNoMoreThan(Duration.ofSeconds(0));

aster.attemptsTo(
Open.browserOn(demoPage),
Ensure.that(CITY.waitingForNoMoreThan(Duration.ofSeconds(10)))
Ensure.that(CITY.waitingForNoMoreThan(Duration.ofSeconds(4)))
.value()
.isEqualTo("Marseille")
);
Expand Down

0 comments on commit 7304285

Please sign in to comment.