mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
[macOS] Pin Selenium to 3.141.59 version (#4359)
This commit is contained in:
committed by
GitHub
parent
e66f7c0790
commit
ecbbec3330
@@ -7,8 +7,12 @@ brew_cask_install_ignoring_sha256 "google-chrome"
|
|||||||
echo "Installing Chrome Driver"
|
echo "Installing Chrome Driver"
|
||||||
brew install --cask chromedriver
|
brew install --cask chromedriver
|
||||||
|
|
||||||
|
# Temporarily download Selenium 3.141.59, since 4.* can contain some breaking changes
|
||||||
echo "Installing Selenium"
|
echo "Installing Selenium"
|
||||||
|
cd $(brew --repo homebrew/core)
|
||||||
|
git checkout dc37198
|
||||||
brew_smart_install "selenium-server-standalone"
|
brew_smart_install "selenium-server-standalone"
|
||||||
|
git checkout master
|
||||||
|
|
||||||
CHROMEWEBDRIVER_DIR=$(readlink $(which chromedriver) | xargs dirname)
|
CHROMEWEBDRIVER_DIR=$(readlink $(which chromedriver) | xargs dirname)
|
||||||
echo "export CHROMEWEBDRIVER=$CHROMEWEBDRIVER_DIR" >> "${HOME}/.bashrc"
|
echo "export CHROMEWEBDRIVER=$CHROMEWEBDRIVER_DIR" >> "${HOME}/.bashrc"
|
||||||
|
|||||||
@@ -7,7 +7,8 @@ function Get-BrowserSection {
|
|||||||
(Get-EdgeVersion),
|
(Get-EdgeVersion),
|
||||||
(Get-EdgeDriverVersion),
|
(Get-EdgeDriverVersion),
|
||||||
(Get-FirefoxVersion),
|
(Get-FirefoxVersion),
|
||||||
(Get-GeckodriverVersion)
|
(Get-GeckodriverVersion),
|
||||||
|
(Get-SeleniumVersion)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -51,6 +52,11 @@ function Get-GeckodriverVersion {
|
|||||||
return Run-Command "geckodriver --version" | Select-Object -First 1
|
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 {
|
function Build-BrowserWebdriversEnvironmentTable {
|
||||||
return @(
|
return @(
|
||||||
@{
|
@{
|
||||||
|
|||||||
Reference in New Issue
Block a user