Skip to content

Conversation

@JoelEinbinder
Copy link
Contributor

This adds elementHandle.focus, elementHandle.press and elementHandle.type. It adds an optional selector argument to page.press and page.type to align them with page.click, and adds keyboard.press and keyboard.type.

Closes #241

Copy link
Contributor

@aslushnikov aslushnikov left a comment

Choose a reason for hiding this comment

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

The code looks good. I'll take a closer look later

docs/api.md Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

let's make selector unconditional here and in page.press. This would align better with the rest of the API. Having selector optional here might create false expectations from other API methods.

We'll break all the beta users, but that's why we're unstable yet.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How do you feel above removing page.press

Copy link
Contributor

Choose a reason for hiding this comment

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

How do you feel above removing page.press

@JoelEinbinder i like it.

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: let's plumb page as a first entry here.

@aslushnikov aslushnikov merged commit 0af0d7d into puppeteer:master Oct 7, 2017
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.

2 participants