Skip to content
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
@pearljamik

Description

@pearljamik

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)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions