How to suppress console error/warning/info messages when executing selenium python scripts using chrome canary

后端 未结 5 664
囚心锁ツ
囚心锁ツ 2020-12-09 16:21

I am running python script (complete script link below) for selenium test using Chrome Canary. The test seems to be running fine, however, there are lots of error/warning/in

5条回答
  •  抹茶落季
    2020-12-09 16:31

    I have just tested this one, it works for me (C#):

        ChromeOptions options = new ChromeOptions();
        options.AddArguments("--headless", "--log-level=3");
        RemoteWebDriver driver = new ChromeDriver(options);
    

提交回复
热议问题