Skip to content

Commit

Permalink
[rb] allow safari options to specify technology preview
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Nov 26, 2022
1 parent 26b9f66 commit af2ab3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rb/lib/selenium/webdriver/safari/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Options < WebDriver::Options
# @see https://developer.apple.com/documentation/webkit/about_webdriver_for_safari
CAPABILITIES = {automatic_inspection: 'safari:automaticInspection',
automatic_profiling: 'safari:automaticProfiling'}.freeze
BROWSER = 'safari'
BROWSER = Selenium::WebDriver::Safari.technology_preview? ? "Safari Technology Preview" : 'safari'

def add_option(name, value = nil)
key = name.is_a?(Hash) ? name.keys.first : name
Expand Down

0 comments on commit af2ab3f

Please sign in to comment.