Skip to content

Commit

Permalink
[rb] fix support for safari and technology preview
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Mar 15, 2021
1 parent 57cb889 commit 2823cfa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rb/lib/selenium/webdriver/common/driver.rb
Expand Up @@ -381,7 +381,7 @@ def add_extensions(browser)
Chrome::Driver::EXTENSIONS
when :firefox
Firefox::Driver::EXTENSIONS
when :safari
when :safari, :safari_technology_preview
Safari::Driver::EXTENSIONS
else
[]
Expand Down
4 changes: 2 additions & 2 deletions rb/lib/selenium/webdriver/remote/bridge.rb
Expand Up @@ -65,7 +65,7 @@ def create_session(capabilities)
extend(WebDriver::Firefox::Features)
when 'msedge'
extend(WebDriver::Edge::Features)
when 'safari'
when 'Safari', 'Safari Technology Preview'
extend(WebDriver::Safari::Features)
end
end
Expand All @@ -81,7 +81,7 @@ def session_id
def browser
@browser ||= begin
name = @capabilities.browser_name
name ? name.tr(' ', '_').to_sym : 'unknown'
name ? name.tr(' ', '_').downcase.to_sym : 'unknown'
end
end

Expand Down

0 comments on commit 2823cfa

Please sign in to comment.