Have you ever had this issue when running your protractor automation tests ?
Error: Error while waiting for Protractor to sync with the page: "Cannot
read property '$$testability' of undefined"
at runWaitForAngularScript.then (/node_modules/protractor/lib/browser.
ts:653:19)
at ManagedPromise.invokeCallback_ (/node_modules/selenium-webdriver/
lib/promise.js:1366:14)
at TaskQueue.execute_ (/node_modules/selenium-webdriver/lib/promise.
js:2970:14)
at TaskQueue.executeNext_ (/node_modules/selenium-webdriver/lib/promise
.js:2953:27)
at asyncRun (/node_modules/selenium-webdriver/lib/promise.js:2813:27)
at /node_modules/selenium-webdriver/lib/promise.js:676:7
at (anonymous)
at process._tickDomainCallback (internal/process/next_tick.js:228:7)
It happens sometimes because you have a redirection when running your tests, so for example, you are redirected to a login page when you try to get your site and you are not authenticated yet.
You will need to get an about:blank page just after the action that calls this redirection.
Like this:
element.click();
browser.driver.get('about:blank');
return browser.get(browser.baseUrl);
See you guys soon !
This line of code looks like it has a typo:
browser.driver.get(‘about:blankreturn browser.get(browser.baseUrl);
What should it read as?
Are you using firefox ? Looks like the pre-formatted tag breaks the text, I am going to change to the code tag instead.