-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[🐛 Bug]: If LoggingPrefs is set, the profile gets lost [Java, Firefox] #10222
Comments
@moossenm, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
@moossenm Thank you for sharing the details! I was able to reproduce the problem. I am trying to look into why the setCapability method is not doing the job. Meanwhile, the example below works.
The print statement prints the following capabilities: Whereas the if setCapability is used the following capabilities are printed:
|
@pujagani many thanks for dealing with this. Just one question: I see |
|
@moossenm Can you please share the logs displayed on your console when the snippet is shared in #10222 (comment) worked with 3.x?
Can you please share the logs that you expect to see? This will help me debug better. Thank you! |
Also, the reason I ask is, I think the loggingPreferences API was never supported by GeckoDriver. https://bugzilla.mozilla.org/show_bug.cgi?id=1453962 mozilla/geckodriver#284 (comment) mozilla/geckodriver#284 (comment) However, you can use BiDi APIs offered by Selenium to get console logs. |
I added extra checks on some helper classes that were adding erroneously the |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What happened?
Hi,
i think i found a bug in the latest 4.1.1 Java Version:
I have following piece of code working with v3.x:
as said, this works with v3.x, but in v4.x the profile is not transferred to firefox, the configuration entry
browser.download.dir
remains unset.and if i remove the line
then it works fine again.
how can it be that this breaks the profile?
am i doing something wrong here?
i see also the same behaviour using a grid.
many thanks
Michael
How can we reproduce the issue?
Relevant log output
Operating System
Windows 10, RedHat7
Selenium version
Java 4.1.1
What are the browser(s) and version(s) where you see this issue?
Firefox 95.0.2
What are the browser driver(s) and version(s) where you see this issue?
GeckoDriver 0.30.0
Are you using Selenium Grid?
4.1.0
The text was updated successfully, but these errors were encountered: