selenium icon indicating copy to clipboard operation
selenium copied to clipboard

How do I turn off Debug logging in Selenium for Golang?

Open bryaan opened this issue 4 years ago • 2 comments

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)

bryaan avatar Feb 22 '21 22:02 bryaan

selenium.SetDebug(false)

x-Xymos avatar May 07 '21 20:05 x-Xymos

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

darrensapalo avatar Oct 08 '21 03:10 darrensapalo