mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[Windows] Rework Selenium installation (#4309)
This commit is contained in:
committed by
GitHub
parent
7d905024ff
commit
1b3870ab40
@@ -119,6 +119,7 @@ $toolsList = @(
|
||||
(Get-StackVersion),
|
||||
(Get-SVNVersion),
|
||||
(Get-VSWhereVersion),
|
||||
(Get-SeleniumVersion),
|
||||
(Get-SwigVersion),
|
||||
(Get-WinAppDriver),
|
||||
(Get-ZstdVersion),
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user