Repository navigation
Implement wheel action in webdriver - #36744
Conversation
ab620af to
c31999d
Compare
xiaochengh
left a comment
There was a problem hiding this comment.
Looks good in general % some coding style comments
4fef5f5 to
9bed754
Compare
Head branch was pushed to by a user without write access
9bed754 to
197dd74
Compare
|
Hi @xiaochengh, can you re-enable the auto merge. Previously the DCO checks stuck for some reason, and I had to repush. |
|
Rebase again to resolve conflict |
|
I just discussed with @d-desiatkin, and it seems that I miss the logic to actually fire the scroll event and make the webview scroll (Big whoops). I initially thought that Now, I will try to push a scroll event to |
a3b1b86 to
44a49c4
Compare
|
Should be ready for review again now. I implemented |
Hmm, this might be the downside of working without verifying on CI. Even though we don't have WebDriver on CI yet, could you run WPT locally, list the affected tests in the PR description and verify if it's working as intended? And also add tests if the existing tests are not adequate. Thanks! |
For More detailed``` 0:03.74 INFO STDOUT: tests/wpt/tests/webdriver/tests/classic/perform_actions/wheel.py::test_null_response_value 0:05.30 INFO STDOUT: PASSED 0:05.84 INFO STDOUT: tests/wpt/tests/webdriver/tests/classic/perform_actions/wheel.py::test_no_top_browsing_context 0:06.64 INFO STDOUT: FAILED 0:07.18 INFO STDOUT: tests/wpt/tests/webdriver/tests/classic/perform_actions/wheel.py::test_no_browsing_context 0:08.06 INFO STDOUT: FAILED 0:08.35 pid:2959583 Full command: /home/k84401373/servo_fork/servo/target/debug/servo --webdriver=58473 --hard-fail --ignore-certificate-errors --headless pid:2959583 [2025-05-07T01:29:04Z ERROR script::dom::bindings::error] Error at :0:0 uncaught exception: g.xJ@https://www.youtube.com/s/player/342e8dde/player_ias.vflset/en_US/base.js:326:26 0:08.35 pid:2959583 AcF@https://www.youtube.com/s/player/342e8dde/player_ias.vflset/en_US/base.js:2109:32 0:08.35 pid:2959583 mjR@https://www.youtube.com/s/player/342e8dde/player_ias.vflset/en_US/base.js:2106:158 0:08.35 pid:2959583 g.GU@https://www.youtube.com/s/player/342e8dde/player_ias.vflset/en_US/base.js:2105:25 0:08.35 pid:2959583 $zm@https://www.youtube.com/s/player/342e8dde/player_ias.vflset/en_US/base.js:2704:70 0:08.35 pid:2959583 g.A.initialize@https://www.youtube.com/s/player/342e8dde/player_ias.vflset/en_US/base.js:8957:1102 0:08.35 pid:2959583 eoC@https://www.youtube.com/s/player/342e8dde/player_ias.vflset/en_US/base.js:3759:78 0:08.35 pid:2959583 g.Wc@https://www.youtube.com/s/player/342e8dde/player_ias.vflset/en_US/base.js:3767:23 0:08.35 pid:2959583 wC@https://www.youtube.com/s/player/342e8dde/player_ias.vflset/en_US/base.js:7072:137 0:08.35 pid:2959583 dFp@https://www.youtube.com/s/player/342e8dde/player_ias.vflset/en_US/base.js:7071:122 0:08.35 pid:2959583 g.mi@https://www.youtube.com/s/player/342e8dde/player_ias.vflset/en_US/base.js:7040:340 0:08.35 pid:2959583 g.mi.create@https://www.youtube.com/s/player/342e8dde/player_ias.vflset/en_US/base.js:13174:209 0:08.35 pid:2959583 DU/a.U@https://www.youtube.com/s/player/342e8dde/www-embed-player-pc.vflset/www-embed-player-pc.js:3331:469 0:08.35 pid:2959583 DU@https://www.youtube.com/s/player/342e8dde/www-embed-player-pc.vflset/www-embed-player-pc.js:3333:12 0:08.35 pid:2959583 k.loadNewVideoConfig@https://www.youtube.com/s/player/342e8dde/www-embed-player-pc.vflset/www-embed-player-pc.js:3326:177 0:08.35 pid:2959583 AU/this.oa<@https://www.youtube.com/s/player/342e8dde/www-embed-player-pc.vflset/www-embed-player-pc.js:3324:421 0:08.35 pid:2959583 0:08.61 INFO STDOUT: tests/wpt/tests/webdriver/tests/classic/perform_actions/wheel.py::test_params_actions_origin_outside_viewport[element] 0:09.25 INFO STDOUT: PASSED 0:09.80 INFO STDOUT: tests/wpt/tests/webdriver/tests/classic/perform_actions/wheel.py::test_params_actions_origin_outside_viewport[viewport] 0:10.48 INFO STDOUT: PASSED 0:11.02 INFO STDOUT: tests/wpt/tests/webdriver/tests/classic/perform_actions/wheel.py::test_scroll_not_scrollable 0:11.77 INFO STDOUT: FAILED 0:12.30 INFO STDOUT: tests/wpt/tests/webdriver/tests/classic/perform_actions/wheel.py::test_scroll_scrollable_overflow 0:13.04 INFO STDOUT: FAILED 0:13.58 INFO STDOUT: tests/wpt/tests/webdriver/tests/classic/perform_actions/wheel.py::test_scroll_iframe 0:14.36 INFO STDOUT: FAILED 0:14.90 INFO STDOUT: tests/wpt/tests/webdriver/tests/classic/perform_actions/wheel.py::test_scroll_shadow_tree[outer-open] 0:15.76 INFO STDOUT: FAILED 0:16.30 INFO STDOUT: tests/wpt/tests/webdriver/tests/classic/perform_actions/wheel.py::test_scroll_shadow_tree[outer-closed] 0:17.12 INFO STDOUT: FAILED 0:17.66 INFO STDOUT: tests/wpt/tests/webdriver/tests/classic/perform_actions/wheel.py::test_scroll_shadow_tree[inner-open] 0:18.50 INFO STDOUT: FAILED 0:19.04 INFO STDOUT: tests/wpt/tests/webdriver/tests/classic/perform_actions/wheel.py::test_scroll_shadow_tree[inner-closed] 0:19.86 INFO STDOUT: FAILED 0:20.40 INFO STDOUT: tests/wpt/tests/webdriver/tests/classic/perform_actions/wheel.py::test_scroll_with_key_pressed 0:21.18 INFO STDOUT: FAILED ```I am also hoping we can solve some subtest in |
Signed-off-by: PotatoCP <[email protected]>
xiaochengh
left a comment
There was a problem hiding this comment.
LGTM. Thanks for updating the test results.
Is it good for merging now?
From me should be good |
- Wheel scroll action can get coordinates relative to an element origin ([previously](#36744) only implemented for viewport). - Extract the element coordinate into a function Testing: Partially `tests/wpt/tests/infrastructure/testdriver/actions/wheelScroll.html`, but we still have synchronization problem. You can try to add sleep in the test to see OK result. cc: @xiaochengh @longvatrong111 @yezhizhen Signed-off-by: PotatoCP <[email protected]> Co-authored-by: PotatoCP <[email protected]>
https://w3c.github.io/webdriver/#wheel-actions
Test:
tests/wpt/tests/webdriver/tests/classic/perform_actions/wheel.py::{test_null_response_value,test_params_actions_origin_outside_viewport[element],test_params_actions_origin_outside_viewport[viewport]}, tests/wpt/tests/webdriver/tests/classic/perform_actions/perform.pyFixes: #36720
cc: @xiaochengh @longvatrong111 @yezhizhen