[macOS] Upgrade Selenium server version from 3 to 4 (#4474)
* upgrade selenium version from 3 to 4 * add test
This commit is contained in:
@@ -7,12 +7,8 @@ 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)
|
brew_smart_install "selenium-server"
|
||||||
git checkout dc37198
|
|
||||||
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"
|
||||||
|
|||||||
@@ -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" {
|
Describe "Edge" {
|
||||||
It "Microsoft Edge" {
|
It "Microsoft Edge" {
|
||||||
$edgeLocation = "/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge"
|
$edgeLocation = "/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge"
|
||||||
|
|||||||
Reference in New Issue
Block a user