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

Add a page on sleep and wait for browser module #1730

Merged
merged 3 commits into from
Sep 25, 2024
Merged

Conversation

ankur22
Copy link
Contributor

@ankur22 ankur22 commented Sep 19, 2024

What?

This new page details recommendation on sleep and the various wait* functions available to the browser module. The main reason for doing this is to guide users away from working with sleep and instead work with the various wait* APIs, specifically replacing sleep with page.waitForTimeout.

Checklist

  • I have used a meaningful title for the PR.
  • I have described the changes I've made in the "What?" section above.
  • I have performed a self-review of my changes.
  • I have run the npm start command locally and verified that the changes look good.
  • I have made my changes in the docs/sources/next folder of the documentation.

Related PR(s)/Issue(s)

Updates: #1719

@ankur22 ankur22 marked this pull request as draft September 19, 2024 14:32
@ankur22 ankur22 force-pushed the add/sleep-wait-browser branch 4 times, most recently from b6e2060 to 6139ac2 Compare September 23, 2024 15:29
@ankur22 ankur22 marked this pull request as ready for review September 23, 2024 15:31
Copy link
Member

@inancgumus inancgumus left a comment

Choose a reason for hiding this comment

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

Awesome 👍

Copy link
Contributor

@andrewslotin andrewslotin left a comment

Choose a reason for hiding this comment

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

Overall LGTM 👍 Left just one minor suggestion

@ankur22
Copy link
Contributor Author

ankur22 commented Sep 25, 2024

@heitortsergent I'm merging this in, but if you have any suggestions I'll open a new PR to make the changes.

@ankur22 ankur22 merged commit 4372f48 into main Sep 25, 2024
5 checks passed
@ankur22 ankur22 deleted the add/sleep-wait-browser branch September 25, 2024 08:34
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.

3 participants