Whenever I try to utilize browser.get()
in my code, I encounter the following error:
Error: Angular could not be found on the page http://localhost:5000/#/login
debug=timing&saveLogs=true&displayAll=true : angular never provided resumeBootstrap
As a workaround, I can use browser.driver.get()
, but this leads to issues where I have to manually add specific waits and deal with unreliable tests.
I've done some research on this problem, but so far no solution seems to work. Here are some additional details to consider:
- The login page is within an Angular application.
ng-app
is specified in the<html>
tag (despite Protractor defaulting to<body>
, I have attempted settingrootElement
tohtml
without success)- The app utilizes
$timeout
, however replacing every occurrence of$timeout
with$interval
did not resolve the issue directConnect: true
with chromeDriver is being used, which should ideally not cause any problems- The versions of Angular and Protractor being utilized are
Angular 1.2.28
andProtractor 2.0
respectively
Here is the complete error message for reference:
Using ChromeDriver directly...
[launcher] Running 1 instances of WebDriver
Error: Angular could not be found on the page http://localhost:5000/#/login?debug=timing&saveLogs=true&displayAll=true : angular never provided resumeBootstrap
at /Users/brandenbyers/Projects/admin-ui/node_modules/grunt-protractor-runner/node_modules/protractor/lib/protractor.js:479:17
at [object Object].promise.ControlFlow.runInFrame_ (/Users/brandenbyers/Projects/admin-ui/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1877:20)
.
. (repeated error lines omitted here for brevity)
.
From: Task: WebDriver.manage().timeouts().setScriptTimeout(11000)
at [object Object].webdriver.WebDriver.schedule (/Users/brandenbyers/Projects/admin-ui/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:360:15)
at [object Object].webdriver.WebDriver.Timeouts.setScriptTimeout (/Users/brandenbyers/Projects/admin-ui/node_modules/grunt-protractor-runner/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:1367:23)
.
. (more callback function errors shown above)
.