Skip to content

[🚀 Feature]: read browser config #14838

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

Closed
dornech opened this issue Nov 30, 2024 · 3 comments
Closed

[🚀 Feature]: read browser config #14838

dornech opened this issue Nov 30, 2024 · 3 comments
Labels
A-needs-triaging A Selenium member will evaluate this soon! I-enhancement Something could be better

Comments

@dornech
Copy link

dornech commented Nov 30, 2024

Feature and motivation

When connecting to existing browser sessions, it might be helpful to read config data like the current download directory. Currently I think this is only possible via calling the internal settings-page and then searching for the key.
I wonder if it is possible, to make the access to settings more straightforward.
I think of a webdriver method to download the config as JSON.

I understand somthing like this was discussed here but there was no real follow-up?
#13124

Usage example

well, I think the idea is pretty clear ?

@dornech dornech added I-enhancement Something could be better A-needs-triaging A Selenium member will evaluate this soon! labels Nov 30, 2024
Copy link

@dornech, 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!

@diemol
Copy link
Member

diemol commented May 8, 2025

Similar to the referenced issue, Selenium cannot directly address this. You need to raise it to each browser vendor.

@diemol diemol closed this as not planned Won't fix, can't repro, duplicate, stale May 8, 2025
@dornech
Copy link
Author

dornech commented May 8, 2025

I see the point. For further interest some remarks:

For Chrome (and other Chromium based browsers) it should be quite easy to achive that via accessing chrome://prefs-internals/

For FireFox it is more troublesome but achievable via evaluating prefs.js / user.js.
Sample Python script here: https://stackoverflow.com/questions/24548306/how-to-read-firefoxs-aboutconfig-entries-using-python/24563687#24563687

However, the config key are browser specific anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-needs-triaging A Selenium member will evaluate this soon! I-enhancement Something could be better
Projects
None yet
Development

No branches or pull requests

2 participants