Skip to content

Commit

Permalink
* add support for chrome 126, 127, 128
Browse files Browse the repository at this point in the history
* drop support for chrome 123, 124
  • Loading branch information
ichylinux committed Sep 10, 2024
1 parent d315c30 commit 0c8de24
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions lib/itamae/plugin/recipe/selenium/chrome.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@
end

if ENV['CHROME_VERSION'].to_s.empty?
ENV['CHROME_VERSION'] = '125.0.6422.141'
case "#{node.platform_family}-#{node.platform_version}"
when /rhel-7\.(.*?)/
ENV['CHROME_VERSION'] = '125.0.6422.141'
else
ENV['CHROME_VERSION'] = '128.0.6613.119'
end

execute "yum install -y https://dl.google.com/linux/chrome/rpm/stable/x86_64/google-chrome-stable-#{ENV['CHROME_VERSION']}-1.x86_64.rpm" do
user 'root'
not_if "which google-chrome-stable && google-chrome-stable --version | egrep 'Google Chrome (123|124|125)\.'"
not_if "which google-chrome-stable && google-chrome-stable --version | egrep 'Google Chrome (125|126|127|128)\.'"
end
else
execute "yum install -y https://dl.google.com/linux/chrome/rpm/stable/x86_64/google-chrome-stable-#{ENV['CHROME_VERSION']}-1.x86_64.rpm" do
Expand Down
2 changes: 1 addition & 1 deletion lib/itamae/plugin/recipe/selenium/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Itamae
module Plugin
module Recipe
module Selenium
VERSION = '0.4.7'
VERSION = '0.4.8'
end
end
end
Expand Down

0 comments on commit 0c8de24

Please sign in to comment.