-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Not recognizing ZIP of profile directory #1656
Comments
@titusfortner sorry for the delay here. Could you please reduce the profile size so that a minimal testcase exists? I would love to see a trace log. Especially because we have unit tests which ensure that this is working: https://searchfox.org/mozilla-central/rev/04d8e7629354bab9e6a285183e763410860c5006/testing/geckodriver/src/capabilities.rs#757-772 |
Even if there is a way to make this work, my understanding is that it does not work for certificates (and extensions). I need a custom profile with a certificate installed. |
What is the right way to reduce the size? As far as I know this is the default profile with my only changing what the start page is so I can see at a glance if it is getting used. |
@whimboo question for you about Firefox profiles in general. Selenium Python bindings have gone as far as to mark using the profile parameter as deprecated. |
So basically the Do you still see the original issue as reported here? |
Stumbled across this old thread looking for help. Can someone tell me the procedure for creating a Base64-encoded ZIP of a profile directory? |
@whimboo I dug into this again based on SeleniumHQ/selenium#11028 Part of the problem is that Python is doing unnecessary things to the directory instead of just zipping it. The main problem is that the profile I've zipped and sent to the driver does not have a user.js file, but the profile that is generated by the driver for use, has a user.js file added, and it includes values that are overwriting what is in the source profile's prefs.js file. |
Interesting. So not having automation specific preferences specified for Marionette could indeed cause quite some problems. Especially around those prefs that need to be set before Firefox is started. Not that long ago I filed https://bugzilla.mozilla.org/show_bug.cgi?id=1868965 to maybe combine these preferences and make it easier for automation clients to start Firefox with the required/recommended preferences correctly set. @titusfortner: Otherwise which data of the generated profile is not working? Is it a specific feature only? This could be something different. |
@titusfortner do you have any answers to my questions in the last comment? Thanks. |
Description
In debugging this issue: SeleniumHQ/selenium#7796
I found that I am unable to send a Base64-encoded ZIP of my profile directory to geckodriver and have it be used. The Ruby code hasn't changed since Jari wrote it 8 years ago; the Capabilities class is just calling this method: https://github.com/SeleniumHQ/selenium/blob/master/rb/lib/selenium/webdriver/common/zipper.rb#L52-L61 which should be doing the right thing.
System
Testcase
Trace-level log
I can't look at actual logs because a trace to just create/destroy session is 112MB text file (we send the serialized profile information twice in latest released Selenium!).
I hacked the code to make sure that the right signature is actually being sent, though:
The text was updated successfully, but these errors were encountered: