18474

Failed: Error while waiting for Protractor to sync with the page: “angular could not be found on the

Question:

I am getting the following error message for my protractor test scripts. The scripts were running fine until I updated my projects for a few of the scripts. The scripts run and the error is thrown at the end. I have tried browser.waitForAngular(); and browser.sleep() with no success.

<blockquote>

Failed: Error while waiting for Protractor to sync with the page: "angular could not be found on the window" Stack: Error: Failed: Error while waiting for Protractor to sync with the page: "angular could not be found on the window" at /Users/faizul/WebstormProjects/canary/node_modules/protractor/node_modules/jasminewd2/index.js:104:16 at /Users/faizul/WebstormProjects/canary/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:1582:15 at [object Object].webdriver.promise.ControlFlow.runInNewFrame_ (/Users/faizul/WebstormProjects/canary/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1654:20) at notify (/Users/faizul/WebstormProjects/canary/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:465:12)

</blockquote>

Answer1:

add framework: 'jasmine2' to your conf.js file . more info here <a href="https://github.com/angular/protractor/issues/1978" rel="nofollow">#1978</a>

Answer2:

If changing the rootElement does not work by itself, try adding framework: 'jasmine2' to exports.config in your Protractor configuration file. I stumbled upon that earlier while trying to figure out the problem. Changing only the rootElement did not work for me.

Recommend

  • How to add reflectionMaterial for an object in threejs
  • explicitly-allowed-ports not working in latest google chrome v. 72.0.3626.109
  • android emulator's wifi says “connected no internet”
  • Webpack failure during JHipster Prod Package
  • How to implement intervals in protractor/selenium
  • How do I reference a promise returned from a chained function? [duplicate]
  • Including an Angular2 application to Asp.Net Webforms Page
  • How do I enable Chrome DevTools Experiments?
  • gulp: passing dependent task return stream as parameter
  • readyRead() signal of QextSerialPort (QIODevice) is not being called fast enough
  • react-native-video [android] undefined is not an object (evaluating NativeModuels.UIManager.RCTVideo
  • Forcing a context switch from the userland on Linux?
  • How to read data from socket connection - android
  • Openshift node app failed to start
  • Error building image: Error building rlang - not available on R 3.5.0 (Uploading shiny)
  • Accessing 3rd level of JSON with Angular ng-repeat
  • Grunt watch Running “watch” task Waiting
  • Slicing an SPA into several components and use AngularJS
  • to implement a spinner in angular2+
  • java.lang.IndexOutOfBoundsException occuring on ArrayList
  • Relative paths. baseUrl and paths not working on ionic2 - angular2
  • Problems installing Yesod for Haskell
  • Unable to install Git-core+svn by MacPorts
  • With Hadoop, can I create a tasktracker on a machine that isn't running a datanode?
  • VSO Build — Response status code does not indicate success: 404 (Not Found)
  • Meteor helpers not available in Angular template
  • Alert pop up with LWUIT
  • ilmerge with a PFX file
  • Disabling Alt-F4 on a Win Forms NotifyIcon
  • Update CALayer sublayers immediately
  • htaccess rewriting URLs with multiple forward slashes
  • Display Images one by one with next and previous functionality
  • Web-crawler for facebook in python
  • A cron job substitute?
  • AngularJs get employee from factory
  • Hits per day in Google Big Query
  • FormattedException instead of throw new Exception(string.Format(…)) in .NET
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • Linking SubReports Without LinkChild/LinkMaster
  • XCode 8, some methods disappeared ? ex: layoutAttributesClass() -> AnyClass