[Windows] Rework Selenium installation (#4309)

This commit is contained in:
Dibir Magomedsaygitov
2021-10-28 22:17:05 +03:00
committed by GitHub
parent 7d905024ff
commit 1b3870ab40
6 changed files with 29 additions and 6 deletions

View File

@@ -275,3 +275,9 @@ function Get-SwigVersion {
$swigVersion = $Matches.Version
return "Swig $swigVersion"
}
function Get-SeleniumVersion {
$seleniumBinaryName = (Get-ToolsetContent).selenium.binary_name
$fullSeleniumVersion = (Get-ChildItem "C:\selenium\${seleniumBinaryName}-*").Name -replace "${seleniumBinaryName}-"
return "Selenium server $fullSeleniumVersion"
}