mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2026-01-01 14:47:38 +08:00
[Windows] Upgrade Selenium server version from 3 to 4 (#4473)
This commit is contained in:
committed by
GitHub
parent
f8c50c93b5
commit
47a60e0776
@@ -139,15 +139,16 @@ Describe "Internet Explorer" {
|
||||
}
|
||||
|
||||
Describe "Selenium" {
|
||||
It "Selenium 'C:\selenium' path exists" {
|
||||
"C:\selenium" | Should -Exist
|
||||
BeforeAll {
|
||||
$seleniumBinaryName = (Get-ToolsetContent).selenium.binary_name
|
||||
$seleniumBinPath = Join-Path "C:\selenium\" "$seleniumBinaryName.jar"
|
||||
}
|
||||
|
||||
It "Selenium Server 'selenium-server-standalone.jar' is installed" {
|
||||
"C:\selenium\selenium-server-standalone.jar" | Should -Exist
|
||||
It "Selenium server is installed" {
|
||||
$seleniumBinPath | Should -Exist
|
||||
}
|
||||
|
||||
It "SELENIUM_JAR_PATH environment variable exists" {
|
||||
Get-EnvironmentVariable "SELENIUM_JAR_PATH" | Should -BeExactly "C:\selenium\selenium-server-standalone.jar"
|
||||
Get-EnvironmentVariable "SELENIUM_JAR_PATH" | Should -BeExactly "$seleniumBinPath"
|
||||
}
|
||||
}
|
||||
@@ -362,8 +362,8 @@
|
||||
}
|
||||
],
|
||||
"selenium": {
|
||||
"version": "3",
|
||||
"binary_name": "selenium-server-standalone"
|
||||
"version": "4",
|
||||
"binary_name": "selenium-server"
|
||||
},
|
||||
"npm": {
|
||||
"global_packages": [
|
||||
|
||||
@@ -394,8 +394,8 @@
|
||||
}
|
||||
],
|
||||
"selenium": {
|
||||
"version": "3",
|
||||
"binary_name": "selenium-server-standalone"
|
||||
"version": "4",
|
||||
"binary_name": "selenium-server"
|
||||
},
|
||||
"npm": {
|
||||
"global_packages": [
|
||||
|
||||
@@ -256,8 +256,8 @@
|
||||
}
|
||||
],
|
||||
"selenium": {
|
||||
"version": "3",
|
||||
"binary_name": "selenium-server-standalone"
|
||||
"version": "4",
|
||||
"binary_name": "selenium-server"
|
||||
},
|
||||
"npm": {
|
||||
"global_packages": [
|
||||
|
||||
Reference in New Issue
Block a user