【发布时间】:2022-12-02 04:47:26
【问题描述】:
So browser.getLogs() is deprecated which was in package JsonWireProtocol which is replaced by WebDriver protocol. I want to capture browser logs (Error and warnings) when the test shows the reports, I cant find something similar in the docs, but I found a command called addConsoleLogs(https://webdriver.io/docs/spec-reporter/#addconsolelogs),if someone has a running example to show would be great. Thank you (using webdriver io v7) I have already tried browser.getLogs() but no luck so looking forward to other approaches with an example.
【问题讨论】:
标签: javascript selenium-webdriver e2e-testing webdriver-io wdio