diff --git a/images/macos/provision/core/chrome.sh b/images/macos/provision/core/chrome.sh index cca49e3a2..b772ac007 100644 --- a/images/macos/provision/core/chrome.sh +++ b/images/macos/provision/core/chrome.sh @@ -7,8 +7,12 @@ brew_cask_install_ignoring_sha256 "google-chrome" echo "Installing Chrome Driver" brew install --cask chromedriver +# Temporarily download Selenium 3.141.59, since 4.* can contain some breaking changes echo "Installing Selenium" +cd $(brew --repo homebrew/core) +git checkout dc37198 brew_smart_install "selenium-server-standalone" +git checkout master CHROMEWEBDRIVER_DIR=$(readlink $(which chromedriver) | xargs dirname) echo "export CHROMEWEBDRIVER=$CHROMEWEBDRIVER_DIR" >> "${HOME}/.bashrc" diff --git a/images/macos/software-report/SoftwareReport.Browsers.psm1 b/images/macos/software-report/SoftwareReport.Browsers.psm1 index 0d4b6b028..7f6fdccc4 100644 --- a/images/macos/software-report/SoftwareReport.Browsers.psm1 +++ b/images/macos/software-report/SoftwareReport.Browsers.psm1 @@ -7,7 +7,8 @@ function Get-BrowserSection { (Get-EdgeVersion), (Get-EdgeDriverVersion), (Get-FirefoxVersion), - (Get-GeckodriverVersion) + (Get-GeckodriverVersion), + (Get-SeleniumVersion) ) } @@ -51,6 +52,11 @@ function Get-GeckodriverVersion { return Run-Command "geckodriver --version" | Select-Object -First 1 } +function Get-SeleniumVersion { + $seleniumVersion = (Get-ChildItem -Path "/usr/local/Cellar/selenium-server*/*").Name + return "Selenium server $seleniumVersion" +} + function Build-BrowserWebdriversEnvironmentTable { return @( @{