mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2026-01-04 09:00:55 +08:00
[macOS] Upgrade Selenium server version from 3 to 4 (#4474)
* upgrade selenium version from 3 to 4 * add test
This commit is contained in:
committed by
GitHub
parent
5d89a3805e
commit
10ea71465c
@@ -7,12 +7,8 @@ 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
|
||||
brew_smart_install "selenium-server"
|
||||
|
||||
CHROMEWEBDRIVER_DIR=$(readlink $(which chromedriver) | xargs dirname)
|
||||
echo "export CHROMEWEBDRIVER=$CHROMEWEBDRIVER_DIR" >> "${HOME}/.bashrc"
|
||||
|
||||
@@ -10,6 +10,12 @@ Describe "Chrome" {
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Selenium server" {
|
||||
It "Selenium server" {
|
||||
(Get-ChildItem -Path "/usr/local/Cellar/selenium-server*/*").Name | Should -BeLike "4.*"
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Edge" {
|
||||
It "Microsoft Edge" {
|
||||
$edgeLocation = "/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge"
|
||||
|
||||
Reference in New Issue
Block a user