question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Angular could not be found on the page (Edge and Safari 10)

See original GitHub issue

Bug report

  • Node Version: 7.10.0

  • Protractor Version: 5.1.2

  • Angular Version: 1.5.8

  • Browser(s): Microsoft Edge (40.15063.0.0.0), Safari 10 (10.1.1(12603.2.4))

  • Operating System and Version Windows 10, macOS Sierra (10.12.5)

  • Your protractor configuration file "exports.config = { allScriptsTimeout: 120000, getPageTimeout: 10000, seleniumAddress: ‘http://SELENIUM-HOST:4444/wd/hub’,

    specs: [ “specs/other/somesuite.js”, ],

    multiCapabilities: [ { browserName: ‘MicrosoftEdge’ }, // {browserName: ‘safari’} ], maxSessions: 1, framework: ‘jasmine2’,

    jasmineNodeOpts: { defaultTimeoutInterval: 90000 }, };"

  • A relevant example test “any test”

  • Output from running the test

  1. Test suits Message: Failed: Angular could not be found on the page https://<address>/.If this is not an Angular application, you may need to turn off waiting for Angular. Please see https://github.com/angular/protractor/blob/master/docs/timeouts.md#waiting-for-angular-on-page-load Stack: Error: Angular could not be found on the page https://<address>/.If this is not an Angular application, you may need to turn off waiting for Angular. Please see https://github.com/angular/protractor/blob/master/docs/timeouts.md#waiting-for-angular-on-page-load at executeAsyncScript_.then (C:\Users<user>\AppData\Roaming\npm\node_modules\protractor\lib\browser.ts:936:29) at ManagedPromise.invokeCallback_ (C:\Users<user>\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:1366:14) at TaskQueue.execute_ (C:\Users<user>\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2970:14) at TaskQueue.executeNext_ (C:\Users<user>\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2953:27) at asyncRun (C:\Users<user>\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2813:27) at C:\Users<user>\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:676:7 at process._tickCallback (internal/process/next_tick.js:109:7) From: Task: Run beforeAll in control flow at Object.<anonymous> (C:\Users<user>\AppData\Roaming\npm\node_modules\protractor\node_modules\jasminewd2\index.js:94:19) From asynchronous test: Error at Suite.describe (C:\SELENIUM-TESTS\specs\smoke\someTest.js:10:5) at Object.<anonymous> (C:\SELENIUM-TESTS\specs\smoke\someTest.js:9:1) at Module._compile (module.js:571:32) at Object.Module._extensions…js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) Pending:

  2. Test 2 Temporarily disabled with xit

2 specs, 1 failure, 1 pending spec Finished in 16.088 seconds

  • Steps to reproduce the bug I’m trying to run protractor 5.1.2 against MicrosoftEdge, and it fails with the message: Angular could not be found on the page https://<webAppAddress>/.If this is not an Angular application, you may need to turn off waiting for Angular. If i turn off waitForAngularEnabled (set it false) it starts to work, and i have the same situation against Safari 10. But the same tests work fine against latest versions of Chrome, Fierfox and IE. AngularJS v1.5.8

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:13
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
GuyMograbicommented, Nov 10, 2018

Any update? I am running into this now.

@Niyarlatotep just to clarify, protractor does not work on Safari 11.

Why was this issue closed?

0reactions
evilaliv3commented, Jun 5, 2020

Thank you @sdoroshenko-CLGX but this is actually not a solution for testing angular applications.

I suggest to re-open this ticket as no reliable solution exists to make it work Safari.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ask Question - Stack Overflow
Running protractor test on safari, say "Angular could not be found on the page https://angularjs.org/" · Subscribe to RSS.
Read more >
Browser support - Angular
Browser supportlink ; Chrome, latest ; Firefox, latest and extended support release (ESR) ; Edge, 2 most recent major versions ; Safari, 2...
Read more >
If Safari on Mac doesn't open a webpage or isn't working as ...
To reload a page, choose View > Reload Page, or press Command-R. If you can't reload, make sure that you're connected to the...
Read more >
Fix site display issues with Compatibility View in Internet ...
Not all website display problems are caused by browser incompatibility. Interrupted Internet connections, heavy traffic, or problems with the website can also ...
Read more >
How to Fix The ERR_TOO_MANY_REDIRECTS Error - Kinsta
In Safari, it will show as Safari Can't Open the Page (as seen below). ... Edge Caching comes free in all of Kinsta's...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found