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
{{ message }}
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
Documentation states that browser.wait() is a blocking call. Whereas when using api, the browser.wait() is definitely not waiting for resolution, it continues execution.
From documentation:
See also ExpectedConditions
Example: Suppose you have a function, startTestServer, that returns a promise for when a server is ready for requests. You can block a WebDriver client on this promise with:
Example
Code
var started = startTestServer();
browser.wait(started, 5 * 1000, 'Server should start within 5 seconds');
browser.get(getServerUrl());
The actual behaviour is DIFFERENT !
Please correct the behaviour or the documentation since it is VERY misleading and this is BASCIC functionality people want to use. If you want Protractor to spreat this is VERY important of an issue.
Bug report
Node Version: ``
Protractor Version: 4.0.9
Angular Version: 2.0
Browser(s): ``
Operating System and Version ``
Your protractor configuration file
A relevant example test
Output from running the test
Steps to reproduce the bug
The URL you are running your tests against (if relevant)
Feature Request
Reasons for adopting new feature
Is this a breaking change? (How will this affect existing functionality)