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: browser.waitForTarget #3356

Merged
merged 3 commits into from Oct 9, 2018

Conversation

JoelEinbinder
Copy link
Collaborator

This adds browser.waitForTarget and browserContext.waitForTarget. It also fixes a flaky test that was incorrectly expecting targets to appear instantly.

lib/helper.js Outdated
try {
value = await Promise.race([promise, timeoutPromise]);
} finally {
clearInterval(timeoutInterval);
Copy link
Contributor

Choose a reason for hiding this comment

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

clearTimeout

docs/api.md Show resolved Hide resolved
docs/api.md Show resolved Hide resolved
lib/Browser.js Show resolved Hide resolved
lib/Browser.js Outdated Show resolved Hide resolved
lib/helper.js Outdated Show resolved Hide resolved
test/browsercontext.spec.js Outdated Show resolved Hide resolved
docs/api.md Outdated Show resolved Hide resolved
docs/api.md Outdated Show resolved Hide resolved
docs/api.md Outdated Show resolved Hide resolved
docs/api.md Outdated Show resolved Hide resolved
@aslushnikov aslushnikov merged commit 6ac66c3 into puppeteer:master Oct 9, 2018
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.

None yet

3 participants