You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Disabling flow control generates error: "Error while waiting for Protractor to sync with the page: "both angularJS testability and angular testability are undefined."
#5150
Open
glemiere opened this issue
Feb 12, 2019
· 5 comments
import {
browser,
ExpectedConditions,
$
} from 'protractor';
describe('When user click \"Test\" button', async () => {
beforeAll(async () => {
expect(browser.getCurrentUrl()).toContain('myawesomewebsite');
});
it ("should click the button", async () => {
var button = $(".button");
button.click();
});
});
This throws me the following error:
UnhandledPromiseRejectionWarning: Error: Error while waiting for Protractor to sync with the page: "both angularJS testability and angular testability are 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. See http://git.io/v4gXM for details"
However it works great if I set SELENIUM_PROMISE_MANAGER to true.
According to the simplicity of this test, this seems to be a bug with protractor itself, am I wrong?
The text was updated successfully, but these errors were encountered:
@CrispusDH indeed this makes the error go away, but then protractor does not find the Element b/c it does not wait for Angular. Is this supposed to happen ?
You should use explicit waiters before interaction with element. For example before click wait that element is clickable. It might be better to find answer how it implement in Stack Overflow.
Here is my config:
And here is my simple test:
This throws me the following error:
However it works great if I set
SELENIUM_PROMISE_MANAGER
totrue
.According to the simplicity of this test, this seems to be a bug with protractor itself, am I wrong?
The text was updated successfully, but these errors were encountered: