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

readme: add evaluate snippet #524

Merged
merged 3 commits into from Aug 24, 2017
Merged

readme: add evaluate snippet #524

merged 3 commits into from Aug 24, 2017

Conversation

ebidel
Copy link
Contributor

@ebidel ebidel commented Aug 24, 2017

pretty important method that we don't have a prominent example for.

pretty important method that we don't have a prominent example for.
README.md Outdated
await page.goto('https://example.com');

// Get the viewport of the page.
const viewport = await page.evaluate(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd rename s/viewport/dimensions to avoid confusion with page.viewport() method

Copy link
Contributor Author

Choose a reason for hiding this comment

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

donedone

@ebidel ebidel merged commit 3b44de4 into master Aug 24, 2017
@ebidel ebidel deleted the ebidel-patch-2 branch August 24, 2017 16:13

browser.close();
})();

Copy link
Contributor

Choose a reason for hiding this comment

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

Missing backticks.

Copy link
Contributor

Choose a reason for hiding this comment

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

PR: #525

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