[py][bidi]: add timestamp to HistoryUpdatedParams class #15892
Merged
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
User description
🔗 Related Issues
💥 What does this PR do?
Adds the
timestampparameter toHistoryUpdatedParamsclass 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
timestampparameter toHistoryUpdatedParamsclass• 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 HistoryUpdatedParamspy/selenium/webdriver/common/bidi/browsing_context.py
• Added
timestampparameter toHistoryUpdatedParamsconstructor•
Updated
from_jsonmethod to parse and validate timestamp• Added
validation ensuring timestamp is non-negative integer
• Updated class
to match WebDriver BiDi specification