diff --git a/Selenium.psm1 b/Selenium.psm1 index 2249b68..28ed422 100644 --- a/Selenium.psm1 +++ b/Selenium.psm1 @@ -156,7 +156,8 @@ function Start-SeFirefox { [switch]$PrivateBrowsing, [switch]$Maximized, [switch]$Minimized, - [switch]$Fullscreen + [switch]$Fullscreen, + [switch]$SuppressLogging ) BEGIN{ @@ -199,6 +200,11 @@ function Start-SeFirefox { } } + if($SuppressLogging){ + # Sets GeckoDriver log level to Fatal. + $Firefox_Options.LogLevel = 6 + } + if($IsLinux -or $IsMacOS){ $Driver = New-Object -TypeName "OpenQA.Selenium.Firefox.FirefoxDriver" -ArgumentList $AssembliesPath,$Firefox_Options }