diff --git a/lib/browser.ts b/lib/browser.ts index b37c46a68..5d02bbbed 100644 --- a/lib/browser.ts +++ b/lib/browser.ts @@ -900,7 +900,7 @@ export class ProtractorBrowser extends AbstractExtendedWebDriver { return url !== this.resetUrl; }, (err: IError) => { - if (err.code == 13) { + if (err.code == 13 || err.name === 'JavascriptError') { // Ignore the error, and continue trying. This is // because IE driver sometimes (~1%) will throw an // unknown error from this execution. See