-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[java][bidi]: add DownloadInfo
class and test for onDownloadWillBegin
#16267
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
…c-event-tests # Conflicts: # java/test/org/openqa/selenium/bidi/browsingcontext/BrowsingContextInspectorTest.java
…ava-bc-event-tests
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.
Thank you! LGTM @navin772
Failing test is unrelated. |
User description
🔗 Related Issues
💥 What does this PR do?
Adds a
DownloadInfo
class for download related info. As per the spec we have asuggestedFilename
param which was earlier not present in the selenium java bindings.This PR also adds a test for the
onDownloadWillBegin
event.🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement
Description
Add
DownloadInfo
class extendingNavigationInfo
withsuggestedFilename
fieldUpdate
onDownloadWillBegin
event to useDownloadInfo
instead ofNavigationInfo
Add test for
onDownloadWillBegin
event functionalityMake
NavigationInfo
constructor protected for inheritanceDiagram Walkthrough
File Walkthrough
DownloadInfo.java
New DownloadInfo class with suggestedFilename
java/src/org/openqa/selenium/bidi/browsingcontext/DownloadInfo.java
DownloadInfo
class extendingNavigationInfo
suggestedFilename
field with getter methodfromJson
methodNavigationInfo.java
Make NavigationInfo constructor protected
java/src/org/openqa/selenium/bidi/browsingcontext/NavigationInfo.java
DownloadInfo
classBrowsingContextInspector.java
Update onDownloadWillBegin to use DownloadInfo
java/src/org/openqa/selenium/bidi/module/BrowsingContextInspector.java
DownloadInfo
import and mapper functiononDownloadWillBegin
method to useDownloadInfo
typeBrowsingContextInspectorTest.java
Add onDownloadWillBegin event test
java/test/org/openqa/selenium/bidi/browsingcontext/BrowsingContextInspectorTest.java
onDownloadWillBegin
event