Skip to content

Commit 11df3e1

Browse files
committed
Merge branch 'master' of github.com:Codeception/CodeceptJS
2 parents a3e3dce + 8663145 commit 11df3e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/helper/Protractor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,7 @@ class Protractor extends Helper {
10761076
return dialog.getText();
10771077
}
10781078
} catch (e) {
1079-
if (e.message.indexOf('no alert open') > -1) {
1079+
if (~e.message.indexOf('no alert open') || ~e.message.indexOf('no such alert')) {
10801080
// Don't throw an error
10811081
return null;
10821082
}

0 commit comments

Comments
 (0)