Repository navigation
Update missing steps in Webdriver - ElementClick - #36660
longvatrong111 wants to merge 1 commit into
Conversation
3e018e8 to
8a1a056
Compare
8a1a056 to
246a1bf
Compare
Signed-off-by: batu_hoang <[email protected]>
246a1bf to
5166891
Compare
xiaochengh
left a comment
There was a problem hiding this comment.
Looks good overall.
Could you make the PR title more specific? For example: Fix panic in WebDriver handle element click
| if !node.is::<Element>() { | ||
| return Err(ErrorStatus::NoSuchElement); | ||
| } |
There was a problem hiding this comment.
How is this change related to the error handling in lib.rs? If it's an independent change, better split it into a separate PR.
Btw I think it's better to have a find_element_by_unique_id that rejects non-element nodes on top of find_node_by_unique_id if other methods also need to reject non-element nodes.
The panic issue is fixed in this PR for all command: I will change this PR to implement some missing steps in ElementClick. |
|
Wait for #36744 then implement scroll into view. |
Fix panic in WebDriver handle element click.
receiver.recv()instead of callingunwrap()directly.Testing:
tests/wpt/tests/webdriver/tests/classic/element_click/click.pyFixes: #36658
cc: @xiaochengh