-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Currently, webdriver.rs:send_keys
immediately return Keyboard event. Meanwhile, based on spec, we should send the keys event through dispatch_actions
.
keyboard-types/src/webdriver.rs
Line 429 in 7634834
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
Labels
No labels