Skip to content

Conversation

@aslushnikov
Copy link
Contributor

This patch adds support to multiple events that could be passed inside
navigation methods:

  • Page.goto
  • Page.waitForNavigation
  • Page.goForward
  • Page.goBack
  • Page.reload

Fixes #805

This patch adds support to multiple events that could be passed inside
navigation methods:
- Page.goto
- Page.waitForNavigation
- Page.goForward
- Page.goBack
- Page.reload

Fixes puppeteer#805
docs/api.md Outdated
- `options` <[Object]> Navigation parameters which might have the following properties:
- `timeout` <[number]> Maximum navigation time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout.
- `waitUntil` <[string]> When to consider a navigation finished, defaults to `load`. Can be either:
- `waitUntil` <[string]|[Array]<[string]>> When to consider navigation succeeded, defaults to `load`. The option allows to pass in an array of events to wait for. Events Can be either:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given an array of event strings, navigation is considered to be successful after all events have been fired.

@aslushnikov aslushnikov merged commit f38c8bb into puppeteer:master Oct 24, 2017
ithinkihaveacat pushed a commit to ithinkihaveacat/puppeteer that referenced this pull request Oct 31, 2017
…er#1147)

This patch adds support to multiple events that could be passed inside
navigation methods:
- Page.goto
- Page.waitForNavigation
- Page.goForward
- Page.goBack
- Page.reload

Fixes puppeteer#805
@aslushnikov aslushnikov deleted the goto-many branch January 25, 2018 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants