Closed acostaf closed 10 years ago
Have you turned off synchronization?
Yes I am turning it off
beforeEach(function () { browser.ignoreSynchronization = true; browser.get('#/RolesByUnit'); });
However not doing that get some other issues like "Error: Error while waiting for Protractor to sync with the page: {}"
I'm guessing you have a race condition on your second one, and since synchronization is turned off the .breadcrumb
elements are being grabbed before the navigation completes. You'll need to do some sort of custom browser.wait
.
Is there still an issue here?
Having this html
and running this test:
It's returned this [ 'Welcome John, Winchester', 'You are:', 'Role Management', '', '', '', '' ]
So now I do navigate to another page where the breadcrumb contains more item like the next piece of html
Then I run the above test to get the same result, Why is that ?
Now if I insert a browser.debugger(); after navigate I get the right result [ 'Welcome John, Winchester', 'You are:', 'Role Management', 'FX', 'New Role', '', '', '', '' ]
so Inconsistent behavior, I don't know why this is happening