selenium
selenium copied to clipboard
How do I turn off Debug logging in Selenium for Golang?
How do I turn off Debug logging in Selenium for Golang?
caps := selenium.Capabilities{"browserName": "chrome"}
caps.SetLogLevel(log.Client, log.Off) caps.SetLogLevel(log.Driver, log.Off) caps.SetLogLevel(log.Server, log.Off) caps.SetLogLevel(log.Performance, log.Off) caps.SetLogLevel(log.Profiler, log.Off)
selenium.SetDebug(false)
Also, refer to this.
In case someone sees this in the future, you can hide all selenium output by passing nil as the output in ServiceOption
@awslunfo