-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[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.statussession.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.statusbidi 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.statusBiDi command to Python bindings.Implemented
get_bidi_session_statusmethod inWebDriver.Created tests for
session.statusBiDi command functionality.Enhanced BiDi support with session readiness checks.
Changes walkthrough 📝
session.py
Add `session.status` BiDi command functionpy/selenium/webdriver/common/bidi/session.py
session_statusfunction to handlesession.statusBiDi command.webdriver.py
Add `get_bidi_session_status` method to WebDriverpy/selenium/webdriver/remote/webdriver.py
get_bidi_session_statusmethod toWebDriver.bidi_session_tests.py
Add tests for `session.status` BiDi commandpy/test/selenium/webdriver/common/bidi_session_tests.py
session.statusBiDi command.