Skip to content

How to send_keys to current focused element? #111

@vizcay

Description

@vizcay

I'm and testing a complex application where I need to send_keys to simulate shortcuts user behaviour.

With selenium-webdriver we can do page.driver.browser.action.send_keys([..]).perform and it just works. Cuprite has a similar API?

The only thing we were able to do is page.evaluate_script('document.activeElement').send_keys(keys) but evaluate_script is taking a lot to return (maybe I should open an issue about that also, because is around 0.5~1sec).

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