This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
browser.wait() icoherent api vs documentation #3679
Closed
Description
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
Codevar 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)