Is there a specific method to return to an angular page? Below is the input and button code from an HTML (non-angular) page:
<input class="value" type="password" 3dsinput="password" name="password">
<input type="submit" value="Submit" name="submit" alt="Submit" border="0">
The script in todo-spec.js looks like this;
element(by.css('.value')).sendKeys('12345');
element(by.buttonText('Submit')).click();
I have included
browser.driver.ignoreSynchronization = true;
at the end of the previous angular page to disable synchronization. However, it seems that this page interacts with a payment gateway service before redirecting to subsequent angular pages. Despite my attempts to disable synchronization, I am encountering errors.
It should be noted that I am receiving two distinct errors each time I run the same SCRIPT EXACTLY back-to-back. One error message reads;
Failed: Cannot assign to read only property 'stack' of Error while waiting for Protractor to sync with the page: "window.angular is undefined. This could be either because this is a non-angular page or because your test involves client-side navigation, which can interfere with Protractor's bootstrapping."
and the other one states;
Failed: javascript error: document unloaded while waiting for result (Session info: chrome=51.0.2704.84) (Driver info: chromedriver=2.21.371459 (36d3d07f660ff2bc1bf28a75d1cdabed0983e7c4),platform=Windows NT 10.0 x86_64)
Your assistance in resolving these issues would be greatly appreciated...