diff --git a/lib/inject.js b/lib/inject.js index 51bd165..bb64212 100644 --- a/lib/inject.js +++ b/lib/inject.js @@ -27,6 +27,7 @@ function findFramesAndInject(parent, script, driver) { }); }).catch(function (e) { console.log('Failed to inject axe-core into one of the iframes!'); + driver.switchTo().defaultContent(); }); }); });