-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[py][bidi]: implement bidi permissions module #15830
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
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
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.
This looks solid @navin772, great work!
These failures appear to be unrelated: //py:common-firefox-bidi-test/selenium/webdriver/common/driver_element_finding_tests.py FLAKY, failed in 1 out of 2 in 600.3s
Stats over 2 runs: max = 600.3s, min = 571.2s, avg = 585.8s, dev = 14.6s
/home/runner/.bazel/execroot/_main/bazel-out/k8-fastbuild/testlogs/py/common-firefox-bidi-test/selenium/webdriver/common/driver_element_finding_tests.py/test_attempts/attempt_1.log
//py:common-chrome-bidi-test/selenium/webdriver/common/devtools_tests.py FAILED in 2 out of 2 in 17.6s
Stats over 2 runs: max = 17.6s, min = 17.2s, avg = 17.4s, dev = 0.2s
/home/runner/.bazel/execroot/_main/bazel-out/k8-fastbuild/testlogs/py/common-chrome-bidi-test/selenium/webdriver/common/devtools_tests.py/test.log
/home/runner/.bazel/execroot/_main/bazel-out/k8-fastbuild/testlogs/py/common-chrome-bidi-test/selenium/webdriver/common/devtools_tests.py/test_attempts/attempt_1.log
//py:common-edge-bidi-test/selenium/webdriver/common/devtools_tests.py FAILED in 2 out of 2 in 17.4s
Stats over 2 runs: max = 17.4s, min = 17.1s, avg = 17.3s, dev = 0.2s
/home/runner/.bazel/execroot/_main/bazel-out/k8-fastbuild/testlogs/py/common-edge-bidi-test/selenium/webdriver/common/devtools_tests.py/test.log
/home/runner/.bazel/execroot/_main/bazel-out/k8-fastbuild/testlogs/py/common-edge-bidi-test/selenium/webdriver/common/devtools_tests.py/test_attempts/attempt_1.log
//py:common-firefox-bidi-test/selenium/webdriver/common/webdriverwait_tests.py FAILED in 2 out of 2 in 302.5s
Stats over 2 runs: max = 302.5s, min = 301.1s, avg = 301.8s, dev = 0.7s
/home/runner/.bazel/execroot/_main/bazel-out/k8-fastbuild/testlogs/py/common-firefox-bidi-test/selenium/webdriver/common/webdriverwait_tests.py/test.log
/home/runner/.bazel/execroot/_main/bazel-out/k8-fastbuild/testlogs/py/common-firefox-bidi-test/selenium/webdriver/common/webdriverwait_tests.py/test_attempts/attempt_1.log |
@shbenzer yes, those are unrelated tests. The recent CI run passes for all tests. |
User description
🔗 Related Issues
💥 What does this PR do?
Adds support for the permissions module in python - https://www.w3.org/TR/permissions/#automation-webdriver-bidi
🔧 Implementation Notes
Currently, I am supporting the permission name input in 2 ways:
PermissionDescriptor
object:💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement, Tests
Description
Implements BiDi permissions module in Python bindings
Adds
Permissions
API to WebDriver for BiDi commandsProvides comprehensive tests for permissions functionality
Supports both string and descriptor-based permission setting
Changes walkthrough 📝
permissions.py
Add BiDi permissions module implementation
py/selenium/webdriver/common/bidi/permissions.py
PermissionState
andPermissionDescriptor
classesPermissions
class for BiDi permission commandswebdriver.py
Integrate BiDi permissions API into WebDriver
py/selenium/webdriver/remote/webdriver.py
Permissions
modulepermissions
property to WebDriver for BiDi accessbidi_permissions_tests.py
Add tests for BiDi permissions module
py/test/selenium/webdriver/common/bidi_permissions_tests.py