Skip to content

Commit

Permalink
Minor fixes to Verbose messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jayrodksmith authored Mar 21, 2024
1 parent add23ca commit 0b3a37d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Private/Helpers/Get-RunAsUserModule.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ function Get-RunAsUserModule {
} catch {

}
Import-Module PowerShellGet -Verbose:$false
Import-Module PowerShellGet -ErrorAction SilentlyContinue -WarningAction SilentlyContinue -verbose:$false | Out-Null
$RunAsUser = Get-Module -Name RunAsUser -ListAvailable | Where-Object { $_.Version -eq '2.4.0' }
if (-not $RunAsUser) {
Get-PackageProvider -Name "nuGet" -ForceBootstrap -Verbose:$false | Out-Null
Install-Module RunAsUser -Force -RequiredVersion '2.4.0' -Verbose:$false
Get-PackageProvider -Name "nuGet" -ForceBootstrap -ErrorAction SilentlyContinue -WarningAction SilentlyContinue -verbose:$false | Out-Null
Install-Module RunAsUser -Force -RequiredVersion '2.4.0' -ErrorAction SilentlyContinue -WarningAction SilentlyContinue -verbose:$false | Out-Null
}
Import-Module RunAsUser -Force -Version '2.4.0' -Verbose:$false
Import-Module RunAsUser -Force -Version '2.4.0' -ErrorAction SilentlyContinue -WarningAction SilentlyContinue -verbose:$false | Out-Null
}
8 changes: 4 additions & 4 deletions Private/Helpers/Get-SeleniumModule.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ function Get-SeleniumModule {
}catch{

}
Import-Module PowerShellGet -Verbose:$false
Import-Module PowerShellGet -ErrorAction SilentlyContinue -WarningAction SilentlyContinue -verbose:$false | Out-Null
$seleniumModule = Get-Module -Name Selenium -ListAvailable | Where-Object { $_.Version -eq '3.0.1' }
if (-not $seleniumModule) {
Get-PackageProvider -Name "nuGet" -ForceBootstrap -Verbose:$false | Out-Null
Install-Module Selenium -Force -RequiredVersion '3.0.1' -Verbose:$false
Get-PackageProvider -Name "nuGet" -ForceBootstrap -ErrorAction SilentlyContinue -WarningAction SilentlyContinue -verbose:$false | Out-Null
Install-Module Selenium -Force -RequiredVersion '3.0.1' -ErrorAction SilentlyContinue -WarningAction SilentlyContinue -verbose:$false | Out-Null
}
Import-Module Selenium -Force -Version '3.0.1' -Verbose:$false
Import-Module Selenium -Force -Version '3.0.1' -ErrorAction SilentlyContinue -WarningAction SilentlyContinue -verbose:$false | Out-Null
}
2 changes: 1 addition & 1 deletion Private/Helpers/Start-SeleniumModule.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function Start-SeleniumModule {
)
if($WebDriver -eq "Edge"){
Get-RunAsUserModule
Import-Module -Name RunAsUser -Verbose:$false
Import-Module -Name RunAsUser -ErrorAction SilentlyContinue -WarningAction SilentlyContinue -verbose:$false | Out-Null
$scriptblock = {
Import-Module Selenium
$WebDriverPath = "C:\temp\EasyWarrantyCheck\WebDrivers"
Expand Down

0 comments on commit 0b3a37d

Please sign in to comment.