Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: page.waitForTimeout #6268

Merged
merged 7 commits into from Jul 28, 2020
Merged

feat: page.waitForTimeout #6268

merged 7 commits into from Jul 28, 2020

Conversation

jackfranklin
Copy link
Collaborator

@jackfranklin jackfranklin commented Jul 23, 2020

This PR adds page.waitForTimeout (and subsequently, frame.waitForTimeout) and deprecates the page.waitFor and frame.waitFor methods.

None of the functionality that waitFor provided is lost; it's now all available via the more explicit waitForX functions. This PR doesn't remove waitFor, all its functionality is still available. I'd suggest we ship this as a minor release, give it a while for users to adjust and then remove waitFor in the next reasonable breaking release.

Fixes #6214.

docs/api.md Outdated Show resolved Hide resolved
* tests. Until we remove this method we still want to ensure we don't break
* it.
*/
beforeEach(() => sinon.stub(console, 'warn').callsFake(() => {}));
Copy link
Collaborator

Choose a reason for hiding this comment

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

when is the stub restored?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

docs/api.md Outdated Show resolved Hide resolved
@mathiasbynens mathiasbynens merged commit 21552f8 into main Jul 28, 2020
@mathiasbynens mathiasbynens deleted the wait-for-timeout branch July 28, 2020 08:37
devtools-bot pushed a commit to ChromeDevTools/devtools-frontend that referenced this pull request Jul 29, 2020
The next version of Puppeteer will deprecate `page.waitFor` (see
puppeteer/puppeteer#6268 for details) so this CL
gets us ahead of the curve by removing all the usages of it.

Change-Id: I0d8cf154b6ee561036df1cd999a64fac1b01cc6c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2325220
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
babot pushed a commit to binaryage/dirac that referenced this pull request Jul 30, 2020
The next version of Puppeteer will deprecate `page.waitFor` (see
puppeteer/puppeteer#6268 for details) so this CL
gets us ahead of the curve by removing all the usages of it.

Change-Id: I0d8cf154b6ee561036df1cd999a64fac1b01cc6c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2325220
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
campersau added a commit to campersau/ungit that referenced this pull request Sep 12, 2020
campersau added a commit to campersau/ungit that referenced this pull request Sep 12, 2020
campersau added a commit to FredrikNoren/ungit that referenced this pull request Sep 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Proposal: deprecate waitFor and add waitForTimeout
6 participants