-
-
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
DownloadInfoclass for download related info. As per the spec we have asuggestedFilenameparam which was earlier not present in the selenium java bindings.This PR also adds a test for the
onDownloadWillBeginevent.🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement
Description
Add
DownloadInfoclass extendingNavigationInfowithsuggestedFilenamefieldUpdate
onDownloadWillBeginevent to useDownloadInfoinstead ofNavigationInfoAdd test for
onDownloadWillBeginevent functionalityMake
NavigationInfoconstructor protected for inheritanceDiagram Walkthrough
File Walkthrough
DownloadInfo.java
New DownloadInfo class with suggestedFilenamejava/src/org/openqa/selenium/bidi/browsingcontext/DownloadInfo.java
DownloadInfoclass extendingNavigationInfosuggestedFilenamefield with getter methodfromJsonmethodNavigationInfo.java
Make NavigationInfo constructor protectedjava/src/org/openqa/selenium/bidi/browsingcontext/NavigationInfo.java
DownloadInfoclassBrowsingContextInspector.java
Update onDownloadWillBegin to use DownloadInfojava/src/org/openqa/selenium/bidi/module/BrowsingContextInspector.java
DownloadInfoimport and mapper functiononDownloadWillBeginmethod to useDownloadInfotypeBrowsingContextInspectorTest.java
Add onDownloadWillBegin event testjava/test/org/openqa/selenium/bidi/browsingcontext/BrowsingContextInspectorTest.java
onDownloadWillBeginevent