-
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
[wdspec] doc adding new WebDriver BiDi modules #49070
Conversation
There are no reviewers for this pull request. Please reach out on the chat room to get help with this. Thank you! |
docs/writing-tests/wdspec.md
Outdated
##### Create `BidiModule` | ||
|
||
BiDi modules are defined in the `tools/webdriver/webdriver/bidi/modules/` directory. | ||
To add a new module called `bluetooth`, declare a Python class |
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 would quite strongly prefer the examples here to be something that has multi-vendor support.
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 would agree here. The Permissions
API can be used instead for such an example. It's one which has cross-browser support.
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 am not sure this guide requires a specific module as an example, I would be happy with a foo
module using a bar
command but permissions sounds good to me too.
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.
Switched to Permissions
, as it allows to provide a specific code snippets comparing to an abstract foo
.
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.
@jgraham was it the only blocker for this doc?
docs/writing-tests/wdspec.md
Outdated
##### Create `BidiModule` | ||
|
||
BiDi modules are defined in the `tools/webdriver/webdriver/bidi/modules/` directory. | ||
To add a new module called `bluetooth`, declare a Python class |
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 would agree here. The Permissions
API can be used instead for such an example. It's one which has cross-browser support.
cf54df1
to
aba8477
Compare
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.
Thanks for this. LGTM.
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.
Approved subject to the suggestion or similar being adopted.
Co-authored-by: jgraham <[email protected]>
Explain adding WebDriver BiDi modules in example of Permissions.