-
-
Notifications
You must be signed in to change notification settings - Fork 8k
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
[grid] fix bug in downloading files by ensuring browser vendor option… #13024
Conversation
…s in capabilities Not all bindings create an empty browser vendor options map by default
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## trunk #13024 +/- ##
=======================================
Coverage 56.49% 56.49%
=======================================
Files 86 86
Lines 5255 5255
Branches 187 187
=======================================
Hits 2969 2969
Misses 2099 2099
Partials 187 187 ☔ View full report in Codecov by Sentry. |
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.
Where is the bug? In the absence of browser options key or the casting? In theory ofNullable
should be handling it.
If there isn't a moz:firefoxOptions key, then we're just mutating a new hash that isn't attached to anything. Python downloading doesn't work unless another geckodriver option happens to be set. |
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 for the explanation
What, the description made complete sense in my mind... 😂 I'll fix the formatting. |
Description
If browser vendor options missing, merge in mutable capabilities with the capabilities set.
I think this is better than casting the capabilities to
MutableCapabilities
to add it?Motivation and Context
Not all bindings create an empty browser vendor options map by default