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.
Currently,
webdriver.rs:send_keysimmediately return Keyboard event. Meanwhile, based on spec, we should send the keys event throughdispatch_actions.keyboard-types/src/webdriver.rs
Line 429 in 7634834
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_actionswhich will calldispatch_keydownanddispatch_keyup.