wallaby icon indicating copy to clipboard operation
wallaby copied to clipboard

Need ability to pass custom options to Chromedriver executable

Open aaronrenner opened this issue 4 years ago • 0 comments

In issue #473, it appears we'd be able to get more information if allow developers to pass custom options to on chromedriver startup.

Below are the options needed to get the chromedriver debug info written to a log file

--log-level=DEBUG --log-path=/path/to/log/chomedriver.log --port=<port>

By starting chromedriver with these options, we're able to get more helpful error output like this:

[1581199532.142][DEBUG]: DevTools WebSocket Event: Runtime.exceptionThrown 928486C2388B88595FC1D7B4B910AFC3 {
   "exceptionDetails": {
      "columnNumber": 8,
      "exception": {
         "type": "string",
         "value": "Test Error"
      },
      "exceptionId": 1,
      "executionContextId": 1,
      "lineNumber": 15,
      "stackTrace": {
         "callFrames": [ {
            "columnNumber": 8,
            "functionName": "throwError",
            "lineNumber": 15,
            "scriptId": "4",
            "url": "http://localhost:32929/errors.html"
         } ]
      },
      "text": "Uncaught",
      "url": "http://localhost:32929/errors.html"
   },
   "timestamp": 1.581199532141929e+12
}

aaronrenner avatar Feb 08 '20 22:02 aaronrenner