Skip to content

Commit

Permalink
[rb] allow symbols for setting unhandled prompt behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Mar 1, 2021
1 parent caa2fbe commit 1d0ab3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rb/lib/selenium/webdriver/remote/capabilities.rb
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ def as_json(*)
hash['proxy']['proxyType'] &&= hash['proxy']['proxyType'].downcase
hash['proxy']['noProxy'] = hash['proxy']['noProxy'].split(', ') if hash['proxy']['noProxy'].is_a?(String)
end
when :unhandled_prompt_behavior
hash['unhandledPromptBehavior'] = value.is_a?(Symbol) ? value.to_s.tr('_', ' ') : value
when String
hash[key.to_s] = value
when Symbol
Expand Down

0 comments on commit 1d0ab3e

Please sign in to comment.