We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Consider the following example, which takes 10 screenshots, each of a different 50pxx50px square.
50px
browser.newPage().then(async page => { await page.navigate('http://example.com'); var promises = []; for (var i = 0; i < 10; ++i) { promises.push(page.screenshot({ path: i + '.png', clip: {x: 50 * i, y: 0, width: 50, height: 50}, }); } await Promise.all(promises); browser.close(); });
Unfortunately, this doesn't work - calls to page.screenshot interfere with each other, failing to clip proper rect.
page.screenshot
The text was updated successfully, but these errors were encountered:
dbb374d
Add test expectation missing in dbb374d
7924563
References #15.
No branches or pull requests
Consider the following example, which takes 10 screenshots, each of a different
50px
x50px
square.Unfortunately, this doesn't work - calls to
page.screenshot
interfere with each other, failing to clip proper rect.The text was updated successfully, but these errors were encountered: