mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 12:48:18 +00:00
move selenium version output to the browsers sector (#4377)
This commit is contained in:
committed by
GitHub
parent
d502c64087
commit
3ab5292583
@@ -54,6 +54,12 @@ function Get-SeleniumWebDriverVersion {
|
||||
return "$driverName $webDriverVersion"
|
||||
}
|
||||
|
||||
function Get-SeleniumVersion {
|
||||
$seleniumBinaryName = (Get-ToolsetContent).selenium.binary_name
|
||||
$fullSeleniumVersion = (Get-ChildItem "C:\selenium\${seleniumBinaryName}-*").Name -replace "${seleniumBinaryName}-"
|
||||
return "Selenium server $fullSeleniumVersion"
|
||||
}
|
||||
|
||||
function Build-BrowserWebdriversEnvironmentTable {
|
||||
return @(
|
||||
@{
|
||||
@@ -67,6 +73,10 @@ function Build-BrowserWebdriversEnvironmentTable {
|
||||
@{
|
||||
"Name" = "GECKOWEBDRIVER"
|
||||
"Value" = $env:GECKOWEBDRIVER
|
||||
},
|
||||
@{
|
||||
"Name" = "SELENIUM_JAR_PATH"
|
||||
"Value" = $env:SELENIUM_JAR_PATH
|
||||
}
|
||||
) | ForEach-Object {
|
||||
[PSCustomObject] @{
|
||||
|
||||
@@ -119,7 +119,6 @@ $toolsList = @(
|
||||
(Get-StackVersion),
|
||||
(Get-SVNVersion),
|
||||
(Get-VSWhereVersion),
|
||||
(Get-SeleniumVersion),
|
||||
(Get-SwigVersion),
|
||||
(Get-WinAppDriver),
|
||||
(Get-ZstdVersion),
|
||||
@@ -178,7 +177,8 @@ $markdown += New-MDList -Style Unordered -Lines @(
|
||||
(Get-SeleniumWebDriverVersion -Driver "edge"),
|
||||
(Get-BrowserVersion -Browser "firefox"),
|
||||
(Get-SeleniumWebDriverVersion -Driver "firefox"),
|
||||
(Get-SeleniumWebDriverVersion -Driver "iexplorer")
|
||||
(Get-SeleniumWebDriverVersion -Driver "iexplorer"),
|
||||
(Get-SeleniumVersion)
|
||||
)
|
||||
|
||||
$markdown += New-MDHeader "Environment variables" -Level 4
|
||||
|
||||
@@ -275,9 +275,3 @@ 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