From 45b8326ae6488a01fa6d397f0172d193458f1a5a Mon Sep 17 00:00:00 2001 From: mgiambalvo Date: Thu, 5 Jan 2017 15:51:45 -0800 Subject: [PATCH] fix(tests): Sleep a small amount before closing the alert. (#3933) Temporary workaround for chromedriver 1500. See #3935 --- spec/basic/expected_conditions_spec.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/basic/expected_conditions_spec.js b/spec/basic/expected_conditions_spec.js index 26b35d693..048087a6f 100644 --- a/spec/basic/expected_conditions_spec.js +++ b/spec/basic/expected_conditions_spec.js @@ -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(); }); });