Skip to content

Commit

Permalink
Download correct geckdriver file on Apple Silicon
Browse files Browse the repository at this point in the history
Geckodriver splits its Mac OS files into 2 versions (macos.tar.gz and macos-aarch64.tar.gz), and webdriver doesn't work properly if `macos.tar.gz` is used on Apple Sillicon platform.
Geckodriver releases: https://github.com/mozilla/geckodriver/releases
  • Loading branch information
stephannv committed Aug 3, 2022
1 parent 14c30e6 commit fd1b59c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/webdrivers/geckodriver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def platform_ext
when 'linux'
"linux#{System.bitsize}.tar.gz"
when 'mac'
'macos.tar.gz'
System.apple_m1_architecture? ? 'macos-aarch64.tar.gz' : 'macos.tar.gz'
when 'win'
"win#{System.bitsize}.zip"
end
Expand Down

0 comments on commit fd1b59c

Please sign in to comment.