-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[py][bidi]: add timestamp
to HistoryUpdatedParams
class
#15892
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
[py][bidi]: add timestamp
to HistoryUpdatedParams
class
#15892
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.
LGTM 👍
User description
🔗 Related Issues
💥 What does this PR do?
Adds the
timestamp
parameter toHistoryUpdatedParams
class as per the updated bidi spec - https://w3c.github.io/webdriver-bidi/#event-browsingContext-historyUpdated🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement
Description
• Add
timestamp
parameter toHistoryUpdatedParams
class• Update constructor and JSON parsing method
• Add validation for timestamp parameter
• Align with updated WebDriver BiDi specification
Changes walkthrough 📝
browsing_context.py
Add timestamp parameter to HistoryUpdatedParams
py/selenium/webdriver/common/bidi/browsing_context.py
• Added
timestamp
parameter toHistoryUpdatedParams
constructor•
Updated
from_json
method to parse and validate timestamp• Added
validation ensuring timestamp is non-negative integer
• Updated class
to match WebDriver BiDi specification