[Windows] Upgrade Selenium server version from 3 to 4 (#4473)

This commit is contained in:
Dibir Magomedsaygitov
2021-11-11 18:21:51 +03:00
committed by GitHub
parent f8c50c93b5
commit 47a60e0776
4 changed files with 12 additions and 11 deletions

View File

@@ -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"
}
}