mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Fix mistakes in webdriver element send keys (#37286)
Fix mistakes from https://github.com/servo/servo/pull/37224. We should return in the middle of send keys if the element is either file input or non typeable form control. Fixes: https://github.com/servo/servo/pull/37224#pullrequestreview-2903871157 Signed-off-by: PotatoCP <kenzieradityatirtarahardja18@gmail.com>
This commit is contained in:
parent
d246e80844
commit
097bd9d87f
3 changed files with 4 additions and 4 deletions
|
@ -1633,7 +1633,7 @@ impl Handler {
|
|||
// TODO: distinguish the not found and not focusable cases
|
||||
// File input and non-typeable form control should have
|
||||
// been handled in `webdriver_handler.rs`.
|
||||
if wait_for_script_response(receiver)?.map_err(|error| WebDriverError::new(error, ""))? {
|
||||
if !wait_for_script_response(receiver)?.map_err(|error| WebDriverError::new(error, ""))? {
|
||||
return Ok(WebDriverResponse::Void);
|
||||
}
|
||||
|
||||
|
|
|
@ -4,3 +4,6 @@
|
|||
|
||||
[test_textarea_append]
|
||||
expected: FAIL
|
||||
|
||||
[test_date]
|
||||
expected: FAIL
|
||||
|
|
|
@ -7,6 +7,3 @@
|
|||
|
||||
[test_no_such_element_from_other_window_handle[closed\]]
|
||||
expected: FAIL
|
||||
|
||||
[test_surrogates]
|
||||
expected: FAIL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue