How to access chromedriver logs for Protractor test

后端 未结 7 1148
一整个雨季
一整个雨季 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:10

    You can always start up your own instance of chromedriver in a separate process and tell Protractor to connect to that. For example, if you start chromedriver with:

    chromedriver --port=9515 --verbose --log-path=chromedriver.log

    Then you could use a configuration file for Protractor like so:

       exports.config = {
         seleniumAddress: 'http://localhost:9515',
         capabilities: {
           'browserName': 'chrome'
         },
         specs: ['example_spec.js'],
       };
    

提交回复
热议问题