Skip to content

Webdriver send keys should not return keyboard event #78

@PotatoCP

Description

@PotatoCP

Currently, webdriver.rs:send_keys immediately return Keyboard event. Meanwhile, based on spec, we should send the keys event through dispatch_actions.

pub fn send_keys(text: &str) -> Vec<Event> {

It is redundant to convert the KeyboardEvent back to char so we can create an action object for dispatch actions.

It is much easier if here we only send the type of event (keydown/keyup) and the character. Then in the remote side, it perform dispatch_actions which will call dispatch_keydown and dispatch_keyup.

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