[Windows] Upgrade Selenium server version from 3 to 4 (#4473)
This commit is contained in:
@@ -139,15 +139,16 @@ Describe "Internet Explorer" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Describe "Selenium" {
|
Describe "Selenium" {
|
||||||
It "Selenium 'C:\selenium' path exists" {
|
BeforeAll {
|
||||||
"C:\selenium" | Should -Exist
|
$seleniumBinaryName = (Get-ToolsetContent).selenium.binary_name
|
||||||
|
$seleniumBinPath = Join-Path "C:\selenium\" "$seleniumBinaryName.jar"
|
||||||
}
|
}
|
||||||
|
|
||||||
It "Selenium Server 'selenium-server-standalone.jar' is installed" {
|
It "Selenium server is installed" {
|
||||||
"C:\selenium\selenium-server-standalone.jar" | Should -Exist
|
$seleniumBinPath | Should -Exist
|
||||||
}
|
}
|
||||||
|
|
||||||
It "SELENIUM_JAR_PATH environment variable exists" {
|
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": {
|
"selenium": {
|
||||||
"version": "3",
|
"version": "4",
|
||||||
"binary_name": "selenium-server-standalone"
|
"binary_name": "selenium-server"
|
||||||
},
|
},
|
||||||
"npm": {
|
"npm": {
|
||||||
"global_packages": [
|
"global_packages": [
|
||||||
|
|||||||
@@ -394,8 +394,8 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"selenium": {
|
"selenium": {
|
||||||
"version": "3",
|
"version": "4",
|
||||||
"binary_name": "selenium-server-standalone"
|
"binary_name": "selenium-server"
|
||||||
},
|
},
|
||||||
"npm": {
|
"npm": {
|
||||||
"global_packages": [
|
"global_packages": [
|
||||||
|
|||||||
@@ -256,8 +256,8 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"selenium": {
|
"selenium": {
|
||||||
"version": "3",
|
"version": "4",
|
||||||
"binary_name": "selenium-server-standalone"
|
"binary_name": "selenium-server"
|
||||||
},
|
},
|
||||||
"npm": {
|
"npm": {
|
||||||
"global_packages": [
|
"global_packages": [
|
||||||
|
|||||||
Reference in New Issue
Block a user