Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
fix(tests): Sleep a small amount before closing the alert. (#3933)
Browse files Browse the repository at this point in the history
Temporary workaround for chromedriver 1500. See #3935
  • Loading branch information
heathkit authored Jan 5, 2017
1 parent b7681c9 commit 45b8326
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/basic/expected_conditions_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ describe('expected conditions', function() {
alertButton.click();
browser2.wait(EC2.alertIsPresent(), 1000);

// TODO: Remove sleep when this is fixed:
// https://bugs.chromium.org/p/chromedriver/issues/detail?id=1500
browser2.sleep(250);
browser2.switchTo().alert().accept();
});
});
Expand Down

0 comments on commit 45b8326

Please sign in to comment.