-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[py][bidi]: add bidi command session.status
and encapsulate in Session class
#15615
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:
|
I am not sure if this is the best way to do it, or whether we should have a new class for session module (like we have for browser and network) but that might introduce breaking changes. |
My preference would be a class-based approach |
@shbenzer I have updated the PR, it now uses class-based approach for Session module. I tried adding the |
If I’m not mistaken, each test is self-contained. So you should be able to test closing the session then opening a new one |
@shbenzer the |
session.status
session.status
and encapsulate in Session class
The code looks good, but I'm not sure we want to expose session commands in this public API on the |
@p0deje I have made the webdriver instance for session private. |
User description
🔗 Related Issues
💥 What does this PR do?
Implements the
session.status
bidi command in python bindings - https://w3c.github.io/webdriver-bidi/#command-session-status🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement, Tests
Description
Added
session.status
BiDi command to Python bindings.Implemented
get_bidi_session_status
method inWebDriver
.Created tests for
session.status
BiDi command functionality.Enhanced BiDi support with session readiness checks.
Changes walkthrough 📝
session.py
Add `session.status` BiDi command function
py/selenium/webdriver/common/bidi/session.py
session_status
function to handlesession.status
BiDi command.webdriver.py
Add `get_bidi_session_status` method to WebDriver
py/selenium/webdriver/remote/webdriver.py
get_bidi_session_status
method toWebDriver
.bidi_session_tests.py
Add tests for `session.status` BiDi command
py/test/selenium/webdriver/common/bidi_session_tests.py
session.status
BiDi command.