How to access chromedriver logs for Protractor test

后端 未结 7 1128
一整个雨季
一整个雨季 2021-02-15 16:42

I have seen that chromedriver can output a logfile (https://sites.google.com/a/chromium.org/chromedriver/logging)

This page shows how to set this up when executing the e

7条回答
  •  孤街浪徒
    2021-02-15 17:18

    In case you use webdriver-manager: webdriver manager has the chrome_logs option (you can find it in its source code (in opts.ts or opts.js in the compiled code)), so you can use it something like:

    webdriver-manager start --chrome_logs /path/to/logfile.txt
    

提交回复
热议问题