-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
[ruby][BiDi] Browsing context commands #11446
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
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 job!
May I suggest to re-organize the code a little bit? It would be nice to follow the naming structure where a folder corresponds to a namespace (class/module) and a file name corresponds to a class name. So in your PR it would be:
file path | full class name |
---|---|
rb/lib/selenium/webdriver/bidi/browsing_context/browsing_context.rb | Selenium::WebDriver::BiDi::BrowsingContext::BrowsingContext |
rb/lib/selenium/webdriver/bidi/browsing_context/browsing_context_info.rb | Selenium::WebDriver::BiDi::BrowsingContext::BrowsingContextInfo |
rb/lib/selenium/webdriver/bidi/browsing_context/navigate_result.rb | Selenium::WebDriver::BiDi::BrowsingContext::NavigateResult |
It looks too verbose though, so I suggest the following structure:
file path | full class name |
---|---|
rb/lib/selenium/webdriver/bidi/browsing_context.rb | Selenium::WebDriver::BiDi::BrowsingContext |
rb/lib/selenium/webdriver/bidi/browsing_context_info.rb | Selenium::WebDriver::BiDi::BrowsingContextInfo |
rb/lib/selenium/webdriver/bidi/navigate_result.rb | Selenium::WebDriver::BiDi::NavigateResult |
It would make the classes more aligned with the file paths they live in.
rb/spec/integration/selenium/webdriver/bidi/browsing_context/browsing_context_spec.rb
Outdated
Show resolved
Hide resolved
rb/spec/integration/selenium/webdriver/bidi/browsing_context/browsing_context_spec.rb
Outdated
Show resolved
Hide resolved
rb/spec/integration/selenium/webdriver/bidi/browsing_context/browsing_context_spec.rb
Outdated
Show resolved
Hide resolved
rb/spec/integration/selenium/webdriver/bidi/browsing_context/browsing_context_spec.rb
Outdated
Show resolved
Hide resolved
rb/spec/integration/selenium/webdriver/bidi/browsing_context/browsing_context_spec.rb
Outdated
Show resolved
Hide resolved
rb/spec/integration/selenium/webdriver/bidi/browsing_context/browsing_context_spec.rb
Outdated
Show resolved
Hide resolved
rb/spec/integration/selenium/webdriver/bidi/browsing_context/browsing_context_spec.rb
Outdated
Show resolved
Hide resolved
9c365e6
to
fcd59a9
Compare
All changes have been incorporated. Thank you @p0deje :) |
Thank you @TamsilAmani! |
@TamsilAmani this test is failing on all Chrome runs currently —
|
Description
Add BrowsingContext module commands based on the spec.
Refer to BiDi spec doc for details.
Motivation and Context
Support BrowsingContext commands based on the W3C BiDi spec. Currently, the commands supported by browsers are made public. Refer https://wpt.fyi/results/webdriver/tests/bidi/browsing_context?label=experimental&label=master&aligned&view=subtest. As browsers implement the rest of the commands, we can make them public (adding methods will not be a breaking change).
Types of changes
Checklist