SeleniumHQ / selenium

A browser automation framework and ecosystem.
https://selenium.dev
Apache License 2.0
29.77k stars 8.02k forks source link

[🐛 Bug]: It does not read the console log completely #14079

Closed majidys closed 4 weeks ago

majidys commented 4 weeks ago

What happened?

When I use the driver.get_log('browser') command to read the console log. Cannot get the json values ​​displayed in the console. And instead of that, it puts the word object in the output file or vscode console. Sample log that the driver.get_log('browser') command cannot read: image

How can we reproduce the issue?

-

Relevant log output

-

Operating System

win 10

Selenium version

4.20

What are the browser(s) and version(s) where you see this issue?

chrome 125.0.6422.141

What are the browser driver(s) and version(s) where you see this issue?

last

Are you using Selenium Grid?

No response

github-actions[bot] commented 4 weeks ago

@majidys, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

majidys commented 4 weeks ago

In other words, I need to be able to read the log marked in the picture, but this section cannot be read with the driver.get_log('browser')command.

image

titusfortner commented 4 weeks ago

The get log method right now is just reporting what the driver is providing so any issues are going to be from Google.

We'll have a more robust approach available soon using webdriver bidi.

github-actions[bot] commented 4 weeks ago

Hi, @majidys. This issue has been determined to require fixes in ChromeDriver.

You can see if the feature is passing in the Web Platform Tests.

If it is something new, please create an issue with the ChromeDriver team. Feel free to comment the issues that you raise back in this issue. Thank you.