[grid] fix bug in downloading files by ensuring browser vendor option…#13024
[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. |
diemol
left a comment
There was a problem hiding this comment.
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. |
|
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
MutableCapabilitiesto add it?Motivation and Context
Not all bindings create an empty browser vendor options map by default