mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
script(webdriver): Send keys set caret at the end of content of text input (#38250)
Remote end step of [element send keys](https://w3c.github.io/webdriver/#element-send-keys) > Step 8.2. Set the text insertion caret using [set selection range](https://w3c.github.io/webdriver/#dfn-set-selection-range) using current text length for both the start and end parameters. Also check if the element is already an active element before focusing (Step 7.7). Testing: `./tests/wpt/tests/webdriver/tests/classic/element_send_keys/form_controls.py` --------- Signed-off-by: PotatoCP <Kenzie.Raditya.Tirtarahardja@huawei.com> Signed-off-by: Kenzie Raditya Tirtarahardja <kenzieradityatirtarahardja18@gmail.com> Co-authored-by: Euclid Ye <yezhizhenjiakang@gmail.com>
This commit is contained in:
parent
ab78a76da6
commit
165ede59cd
3 changed files with 47 additions and 23 deletions
|
@ -1,6 +0,0 @@
|
|||
[form_controls.py]
|
||||
[test_input_append]
|
||||
expected: FAIL
|
||||
|
||||
[test_textarea_append]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue