Skip to content
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

Merged
merged 5 commits into from
Oct 24, 2023

Conversation

titusfortner
Copy link
Member

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

…s in capabilities

Not all bindings create an empty browser vendor options map by default
@titusfortner titusfortner changed the title [java] fix bug in downloading files by ensuring browser vendor option… [grid] fix bug in downloading files by ensuring browser vendor option… Oct 22, 2023
@codecov-commenter
Copy link

codecov-commenter commented Oct 22, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d810ac9) 56.49% compared to head (2a2369a) 56.49%.
Report is 10 commits behind head on trunk.

❗ Current head 2a2369a differs from pull request most recent head 3073c31. Consider uploading reports for the commit 3073c31 to get more accurate results

❗ 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.
📢 Have feedback on the report? Share it here.

Copy link
Member

@diemol diemol left a 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.

@titusfortner
Copy link
Member Author

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.

Copy link
Member

@diemol diemol left a 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

@titusfortner
Copy link
Member Author

What, the description made complete sense in my mind... 😂

I'll fix the formatting.

@diemol diemol merged commit d8d4068 into trunk Oct 24, 2023
13 checks passed
@diemol diemol deleted the missing_optionsKey branch October 24, 2023 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants