Skip to content

How can we simulate typing? #59

Description

@timwis

I'm really excited about this project. A potential gotcha was pointed out in the hn thread, so I thought I'd take the conversation here since that thread seems to have lost momentum.

How can we simulate typing using remote-browser? Technically we can set an input element's value to something, or create keypress, keydown, etc. events. But it seems that webdriver takes a different approach that's closer to true user input. I don't know how webdriver does it, but the use case is a website that, say, auto-formats a phone number or credit card number as you type it. Sometimes these don't work when you set the value of the input field. Another example is JS-based validations. The type method on puppeteer and selenium seem to fool the browser into thinking a user is typing. How might we achieve this in remote-browser?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions