Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need ability to pass custom options to Chromedriver executable #509

Open
aaronrenner opened this issue Feb 8, 2020 · 0 comments
Open

Need ability to pass custom options to Chromedriver executable #509

aaronrenner opened this issue Feb 8, 2020 · 0 comments
Assignees

Comments

@aaronrenner
Copy link
Member

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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant