mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-29 04: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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user