Starting page angular. By clicking a button will lead to the login page which is None-angular. After login rest of the pages are angular.
I'm using async/await.
- Include
waitForAngularEnable(true) in onPrepare but didn't work. - Try adding
waitForAngularEnable(true) after login and this didn't work. - Tried with increasing the
timeOutand that didn't work too. - Works only when
waitForAngularEnable(false). I can't use the inbuilt feature in protractor waiForAngular which wait until angular to load. Currently with waitForAngularEnable(false) I'm manually handling it using browser.driver.wait(until.elementsLocated(by.id(value)), 30000); or await browser.wait(ExpectedConditions.presenceOf(ele), 30000);. This way it works.
Versions-
"protractor": "^5.4.2"
"node" : 10.15.3
"target": "es6"
"cucumber": "^5.1.0",
"cucumber-html-reporter": "^5.0.0"
ScriptTimeoutError: script timeout: result was not received in 30 seconds
(Session info: chrome=74.0.3729.169)
(Driver info: chromedriver=74.0.3729.6
(255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}),platform=Windows NT 10.0.17763 x86_64) at Object.checkLegacyResponse
(C:\Automation\General\node_modules\selenium-webdriver\lib\error.js:546:15) at parseHttpResponse (C:\Automation\General\node_modules\selenium-webdriver\lib\http.js:509:13)
at doSend.then.response (C:\Automation\General\node_modules\selenium-webdriver\lib\http.js:441:30)
at process._tickCallback (internal/process/next_tick.js:68:7) From: Task: Protractor.waitForAngular() - Locator: By(xpath, //span[@class='title__subtext'])