mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 20:56:47 +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"
|
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 {
|
function Build-BrowserWebdriversEnvironmentTable {
|
||||||
return @(
|
return @(
|
||||||
@{
|
@{
|
||||||
@@ -67,6 +73,10 @@ function Build-BrowserWebdriversEnvironmentTable {
|
|||||||
@{
|
@{
|
||||||
"Name" = "GECKOWEBDRIVER"
|
"Name" = "GECKOWEBDRIVER"
|
||||||
"Value" = $env:GECKOWEBDRIVER
|
"Value" = $env:GECKOWEBDRIVER
|
||||||
|
},
|
||||||
|
@{
|
||||||
|
"Name" = "SELENIUM_JAR_PATH"
|
||||||
|
"Value" = $env:SELENIUM_JAR_PATH
|
||||||
}
|
}
|
||||||
) | ForEach-Object {
|
) | ForEach-Object {
|
||||||
[PSCustomObject] @{
|
[PSCustomObject] @{
|
||||||
|
|||||||
@@ -119,7 +119,6 @@ $toolsList = @(
|
|||||||
(Get-StackVersion),
|
(Get-StackVersion),
|
||||||
(Get-SVNVersion),
|
(Get-SVNVersion),
|
||||||
(Get-VSWhereVersion),
|
(Get-VSWhereVersion),
|
||||||
(Get-SeleniumVersion),
|
|
||||||
(Get-SwigVersion),
|
(Get-SwigVersion),
|
||||||
(Get-WinAppDriver),
|
(Get-WinAppDriver),
|
||||||
(Get-ZstdVersion),
|
(Get-ZstdVersion),
|
||||||
@@ -178,7 +177,8 @@ $markdown += New-MDList -Style Unordered -Lines @(
|
|||||||
(Get-SeleniumWebDriverVersion -Driver "edge"),
|
(Get-SeleniumWebDriverVersion -Driver "edge"),
|
||||||
(Get-BrowserVersion -Browser "firefox"),
|
(Get-BrowserVersion -Browser "firefox"),
|
||||||
(Get-SeleniumWebDriverVersion -Driver "firefox"),
|
(Get-SeleniumWebDriverVersion -Driver "firefox"),
|
||||||
(Get-SeleniumWebDriverVersion -Driver "iexplorer")
|
(Get-SeleniumWebDriverVersion -Driver "iexplorer"),
|
||||||
|
(Get-SeleniumVersion)
|
||||||
)
|
)
|
||||||
|
|
||||||
$markdown += New-MDHeader "Environment variables" -Level 4
|
$markdown += New-MDHeader "Environment variables" -Level 4
|
||||||
|
|||||||
@@ -275,9 +275,3 @@ function Get-SwigVersion {
|
|||||||
$swigVersion = $Matches.Version
|
$swigVersion = $Matches.Version
|
||||||
return "Swig $swigVersion"
|
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