Closed InnoviseJB closed 9 years ago
Can you give some more information - is there a stack trace for the Cannot read property '0'
error? Can you share the code for the test this occurs on?
Hi Julie, the code it happens on tends to be a random test that will sometimes pass and sometimes fail. The main error we are now seeing is in builds for ie10 and ie11 , for some reason ie9 isn’t running at all , even though it’s configured to!
The error is “Error while waiting for protractor to sync with the page”
10) flowCanvasControllerTests.spec close should close previous workspaces when cross clicked
[IE 10 #8] Message:
[IE 10 #8] ←[31mError: Error while waiting for Protractor to sync with the page: "[ng:test] http://errors.angularjs.org/1.3.14/ng/test"←[0m
[IE 10 #8] Stacktrace:
[IE 10 #8] Error: Error while waiting for Protractor to sync with the page: "[ng:test] http://errors.angularjs.org/1.3.14/ng/test"
[IE 10 #8] at Error (
To try to resolve this error we have specified a rootElement as being ‘#cortex-app’, this was originally set to ‘body > div’ with similar errors occuring
This is a representation of our html.
Hope this helps, if you need any more info just ask ☺ , Thanks.
So, to be clear, the issue is NOT always 'cannot read property 0 of undefined'?
Not always, its since changed to "Error while waiting for protractor to sync with the page"
Can you make a small, reproducible test case that you can share?
Haven't heard any updates in a while, so I'm closing this issue as stale. Please open a new issue if you think there is a remaining general problem.
Hi, I have recently been experiencing errors with IE browser testing and wondered if anyone could shed some light on the problem? Originally our set of protractor tests were passing on Chrome36,37,38 , Firefox31,32,33 and IE9,10,11 and now we are getting many errors relating to IE browsers. IE9 and IE11 both run through some tests successfully and then at a random point will throw the following error:
[IE 9 #7] Failures: [IE 9 #7] [IE 9 #7] 1) flowCanvasControllerTests.spec readonly mode should not allow items to be moved [IE 9 #7] Message: [IE 9 #7] ←[31mTypeError: Cannot read property '0' of undefined←[0m
From then onwards it seems that every test fails with the following error:
[IE 9 #7] 2) flowCanvasControllerTests.spec readonly mode should not allow items to be moved [IE 9 #7] Message: [IE 9 #7] ←[31mError: Error while waiting for Protractor to sync with the page: "Unable to get value of the property 'get': object is null or undefined"←[0m
We have tried running our tests with browserstack and saucelabs, both get the same errors leading me to think this is a protractor issue. If anyone has any ideas what causes this and how to fix it please do say, Thanks.