Get chrome's console log

后端 未结 8 1411
感动是毒
感动是毒 2020-11-28 09:05

I want to build an automation testing, so I have to know the errors that appear in the console of chrome.

there is an option to get the error lines that appear in th

8条回答
  •  遥遥无期
    2020-11-28 09:16

    driver.manage().logs().get("browser")
    

    Gets all logs printed on the console. I was able to get all logs except Violations. Please have a look here Chrome Console logs not printing Violations

提交回复
热议问题