Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Commit

Permalink
#85 small fix in goToUrlAndLoad method.
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestas-zekas committed Jan 21, 2021
1 parent 64ec5a9 commit 2c1b061
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
### Waiting for full page load ###

* Helpers.goToUrlAndLoad() waits for page to be fully loaded.
* It uses parameter 'waitUntil: "networkidle0"' to consider navigation to be finished when there are no more than 0 network connections for at least 500 ms.
* It uses parameter 'waitUntil: "networkidle"' to consider navigation to be finished when there are no more than 0 network connections for at least 500 ms.

### Intercept requests ###

Expand Down
2 changes: 1 addition & 1 deletion framework/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Helpers {

async goToUrlAndLoad(url, timeout = defaultTimeout) {
await page.goto(url, {
waitUntil: "networkidle0", timeout: timeout,
waitUntil: "networkidle", timeout: timeout,
});
}

Expand Down

0 comments on commit 2c1b061

Please sign in to comment.