Skip to content

Enable browser logging to get console.log #238

Answered by ElSnoMan
szabolcslevay asked this question in Q&A
Discussion options

You must be logged in to vote

DesiredCapabilities are deprecated, so we use the Options class of the specified browser. In the end, you would only need to update the dictionary via the CLI or pylenium.json.

For example:

{
  "driver": {
    "browser": "chrome",
    "remote_url": "",
    "wait_time": 10,
    "page_load_wait_time": 0,
    "options": [],
    "capabilities": {
      "goog:loggingPrefs": { "performance": "ALL" }
    },
    ...
}

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ElSnoMan
Comment options

Answer selected by szabolcslevay
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants