Skip to content

Commit 26e5410

Browse files
committed
Enchance Start-SeChrome by adding Verbose
Replaced Write-Host with Write-Verbose in Start-SeChrome
1 parent 6fef480 commit 26e5410

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Selenium.psm1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ function Start-SeChrome {
6464
$Chrome_Options = New-Object -TypeName "OpenQA.Selenium.Chrome.ChromeOptions"
6565

6666
if($DefaultDownloadPath){
67-
Write-Host "Setting Default Download directory: $DefaultDownloadPath"
67+
Write-Verbose "Setting Default Download directory: $DefaultDownloadPath"
6868
$Chrome_Options.AddUserProfilePreference('download', @{'default_directory' = $($DefaultDownloadPath.FullName); 'prompt_for_download' = $false; })
6969
}
7070
if($ProfileDirectoryPath){
71-
Write-Host "Setting Profile directory: $ProfileDirectoryPath"
71+
Write-Verbose "Setting Profile directory: $ProfileDirectoryPath"
7272
$Chrome_Options.AddArgument("user-data-dir=$ProfileDirectoryPath")
7373
}
7474

@@ -99,7 +99,7 @@ function Start-SeChrome {
9999
}
100100

101101
if (!$HideVersionHint) {
102-
Write-Host "Download the right chromedriver from 'http://chromedriver.chromium.org/downloads'" -ForegroundColor Yellow
102+
Write-Verbose "Download the right chromedriver from 'http://chromedriver.chromium.org/downloads'"
103103
}
104104

105105
if($IsLinux -or $IsMacOS){

0 commit comments

Comments
 (0)