I have trouble with Protractor ignoreSynchronization.
I was not able to log in without using browser.ignoreSynchronization = true. After login ignoreSynchronization was not needed any more.
Here is the login code:
browser.driver.get('xxx');
browser.ignoreSynchronization = true;
$('#input-idCode').sendKeys(idCode);
$('#input-phoneno').sendKeys(mobileNum);
$('.mobile-id').click();
browser.wait(EC.presenceOf(nextButton), 15000);
browser.ignoreSynchronization = false;
In the next case, I am also testing Angular website, but the same solution did not work any more. After logging in I am redirected to main page and get error message: Failed: Timed out waiting for Protractor to synchronize with the page after 60 seconds. although the element I want to interact with is visible.
What could be the problem? I don't want to run tests with ignoreSynchronization = true.