How to open devtools and keep the focus on console as default #2066
Answered
by
mdmintz
hiyamandal
asked this question in
Q&A
-
|
Hello, For a test, I need the devtools to be always open and view the console tab. At the end of the test, I need to print the logs. Can anyone please help me how to
|
Beta Was this translation helpful? Give feedback.
Answered by
mdmintz
Sep 6, 2023
Replies: 1 comment 3 replies
-
|
Hello, For 1: Add For 2: There are methods for that: (See the example test: SeleniumBase/examples/test_console_logging.py) |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
mdmintz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Hello,
For 1: Add
--devtoolsas a pytest command-line option to open devtools with the browser. More info here.For 2: There are methods for that: (See the example test: SeleniumBase/examples/test_console_logging.py)