Skip to content
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

Merged

Conversation

jimevans
Copy link
Contributor

No description provided.

Copy link
Contributor

@whimboo whimboo left a 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.

tools/webdriver/webdriver/bidi/modules/browsing_context.py Outdated Show resolved Hide resolved
await_promise=True,
)

parent_node_reference = { "sharedId": script_result["result"]["sharedId"] }
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

@lutien lutien left a 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.

Copy link
Contributor

@lutien lutien left a 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!

Copy link
Contributor

@sadym-chromium sadym-chromium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

@jgraham jgraham merged commit c05a490 into web-platform-tests:master Dec 12, 2023
38 of 41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants