-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[webdriver-bidi] Add tests for browsingContext.locateNodes #42565
[webdriver-bidi] Add tests for browsingContext.locateNodes #42565
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work @jimevans! So far this looks already pretty good especially with having in mind that you are currently not able to run these tests at all because no browser implemented this API yet! I'm impressed.
I had a look over all the test files and added quite a couple of review comments inline. Please let me know if something is unclear or requires further discussion.
webdriver/tests/bidi/browsing_context/locate_nodes/max_node_count.py
Outdated
Show resolved
Hide resolved
await_promise=True, | ||
) | ||
|
||
parent_node_reference = { "sharedId": script_result["result"]["sharedId"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that the returned value from evaluate
is already the result
so you can directly re-use it. Maybe rename script_result
to node_reference
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I've got this right now? Please double-check my code.
webdriver/tests/bidi/browsing_context/locate_nodes/start_nodes.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Henrik Skupin <mail@hskupin.info>
Co-authored-by: Henrik Skupin <mail@hskupin.info>
Co-authored-by: Henrik Skupin <mail@hskupin.info>
Co-authored-by: Henrik Skupin <mail@hskupin.info>
Co-authored-by: Henrik Skupin <mail@hskupin.info>
Co-authored-by: Henrik Skupin <mail@hskupin.info>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey, @jimevans, great work!
Just a couple of comments from my side.
webdriver/tests/bidi/browsing_context/locate_nodes/start_nodes.py
Outdated
Show resolved
Hide resolved
webdriver/tests/bidi/browsing_context/locate_nodes/start_nodes.py
Outdated
Show resolved
Hide resolved
webdriver/tests/bidi/browsing_context/locate_nodes/ownership.py
Outdated
Show resolved
Hide resolved
webdriver/tests/bidi/browsing_context/locate_nodes/max_node_count.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Alexandra Borovova <lutien@users.noreply.github.com>
Co-authored-by: Alexandra Borovova <lutien@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me now!
Thanks for the quick update!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
Co-authored-by: Maksim Sadym <69349599+sadym-chromium@users.noreply.github.com>
No description provided.