Skip to content

Commit

Permalink
wait
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-siek committed May 9, 2024
1 parent bdb7cfb commit a5c5475
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -628,9 +628,10 @@ public void putsBackPageLoad() {
}

@Test
public void withUnloadedIframes() {
public void withUnloadedIframes() throws InterruptedException {
webDriver.get(fixture("/lazy-loaded-iframe.html"));
String title = webDriver.getTitle();
webDriver.wait(1000);
AxeBuilder axeBuilder = new AxeBuilder()
.withOnlyRules(Arrays.asList("label", "frame-tested"));
Results axeResults = axeBuilder.analyze(webDriver);
Expand All @@ -647,7 +648,7 @@ public void withUnloadedIframes() {
assertEquals(axeResults.getIncomplete().get(0).getId(), "frame-tested");
assertEquals(axeResults.getIncomplete().get(0).getNodes().size(), 1);
assertTargetEquals(
axeResults.getIncomplete().get(0).getNodes().get(1).getTarget(),
axeResults.getIncomplete().get(0).getNodes().get(0).getTarget(),
expected
);
} else {
Expand Down

0 comments on commit a5c5475

Please sign in to comment.