Open ArunDhananjeyan opened 5 years ago
I have the same issue. unable to find elements from page after non-angular page get redirect to angular Page.. .Did u got the resolution?
Hi @testershruti01, It seems to be an application issue which is issue appearing only chrome version < 75. Also I have raised a ticket to my dev team against it but they haven't respond back to me
Hello I got the resolution for this was getting same issue when page redirect from non angular page to angular page. i have ngwebdriver which is a static variable I have reintialized it, and now its working as I want.
Hi Team, I'm pretty new to protractor and we are trying to build up a framework for one of our Angular application. In which we are facing an issue after application redirecting from non-angular to angularJS(1.5.7) application. Also i have Code snippet and error logs to it if possible could someone help on this please ?
Node Version:
v8.11.4
Protractor Version:5.4.2
Angular Version:1.5.7
Browser(s):chrome, firefox
Operating System and Version:windows 10 pro
Configuration file:exports.config = { directConnect: true,
A relevant example test
//Navigating to non- angular application browser.waitForAngularEnabled(false);
Output from running the test Error 1: `Failures: 1) AngularJS. TestCase1 Message: Failed: javascript error: Cannot read property 'push' of undefined (Session info: chrome=77.0.3865.90) (Driver info: chromedriver=76.0.3809.12 (220b19a666554bdcac56dff9ffd44c300842c933-refs/branch-heads/3809@{#83}),platform=Windows NT 10.0.18362 x86_64) Stack: JavascriptError: javascript error: Cannot read property 'push' of undefined (Session info: chrome=77.0.3865.90) (Driver info: chromedriver=76.0.3809.12 (220b19a666554bdcac56dff9ffd44c300842c933-refs/branch-heads/3809@{#83}),platform=Windows NT 10.0.18362 x86_64) at Object.checkLegacyResponse (C:\Users\Administrator\Downloads\protractor-jasmine-typescript-master\protractor-jasmine-typescript-master\node_modules\selenium-webdriver\lib\error.js:546:15) at parseHttpResponse (C:\Users\Administrator\Downloads\protractor-jasmine-typescript-master\protractor-jasmine-typescript-master\node_modules\selenium-webdriver\lib\http.js:509:13) at doSend.then.response (C:\Users\Administrator\Downloads\protractor-jasmine-typescript-master\protractor-jasmine-typescript-master\node_modules\selenium-webdriver\lib\http.js:441:30) at
at process._tickCallback (internal/process/next_tick.js:188:7)
From asynchronous test:
Error
at Suite. (C:\Users\Administrator\Downloads\protractor-jasmine-typescript-master\protractor-jasmine-typescript-master\test-suites\angularjs.spec.ts:22:5)
at Object. (C:\Users\Administrator\Downloads\protractor-jasmine-typescript-master\protractor-jasmine-typescript-master\test-suites\angularjs.spec.ts:12:1)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
1 spec, 1 failure Finished in 58.124 seconds
[16:35:14] I/launcher - 0 instance(s) of WebDriver still running [16:35:14] I/launcher - chrome #01 failed 1 test(s) [16:35:14] I/launcher - overall: 1 failed spec(s) [16:35:16] E/launcher - Process exited with error code 1 npm ERR! Test failed. See above for more details.`
Also I have tried to set Protractor as Non-Angular Application whereas I'm getting new issue
Error 2: `Failures: 1) AngularJS. TestCase1 Message: Failed: invalid argument: Unsupported locator strategy: null (Session info: chrome=77.0.3865.90) (Driver info: chromedriver=76.0.3809.12 (220b19a666554bdcac56dff9ffd44c300842c933-refs/branch-heads/3809@{#83}),platform=Windows NT 10.0.18362 x86_64) Stack: WebDriverError: invalid argument: Unsupported locator strategy: null (Session info: chrome=77.0.3865.90) (Driver info: chromedriver=76.0.3809.12 (220b19a666554bdcac56dff9ffd44c300842c933-refs/branch-heads/3809@{#83}),platform=Windows NT 10.0.18362 x86_64) at parseHttpResponse (C:\Users\Administrator\Downloads\protractor-jasmine-typescript-master\protractor-jasmine-typescript-master\node_modules\selenium-webdriver\lib\http.js:509:13) at doSend.then.response (C:\Users\Administrator\Downloads\protractor-jasmine-typescript-master\protractor-jasmine-typescript-master\node_modules\selenium-webdriver\lib\http.js:441:30) at
at process._tickCallback (internal/process/next_tick.js:188:7)
From asynchronous test:
Error
at Suite. (C:\Users\Administrator\Downloads\protractor-jasmine-typescript-master\protractor-jasmine-typescript-master\test-suites\angularjs.spec.ts:22:5)
at Object. (C:\Users\Administrator\Downloads\protractor-jasmine-typescript-master\protractor-jasmine-typescript-master\test-suites\angularjs.spec.ts:12:1)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
1 spec, 1 failure`