-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Unable to launch firefox 48 with custom profile using Geckodriver #2645
Comments
I can confirm the issue, I have the same problem and tried everything without any success ... |
The same problem |
Agree. It doesn't work :( |
Same problem too. |
does anyone know how to escalate this issue ? |
With v3.0.0b2 and geckodriver 0.10, I was able to do so with following code (sorry im using vb.net, ull have to convert it yourself)
Hope this helps ! |
Thanks Scr34mik for your help, Unfortunately, I am getting error "corrupt deflate stream" at , if profile is converted to Base64String |
I can also confirm this issue. Looking for a long term solution to be able to use firefox for GUI tests. |
I found that we can use https://github.com/mozilla/geckodriver/releases/tag/v0.7.1 then follow https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver step by step. caps = DesiredCapabilities.FIREFOX
caps["marionette"] = True
caps["binary"] = settings.FIREFOX_PATH
driver = webdriver.Firefox(capabilities=caps) It just work :) |
I get a similar error, when I try to launch custom profile with Selenium Has there been any updates regarding this? |
Yes, Geckodriver v0.11 (when it comes out) will support 'firefoxOptions' - mozilla/geckodriver#228 |
Is there an expected release date for v0.11? |
Following` code is working !
|
Hi furqanmlk, I tried your code but it still has the same error, I'm using the latest version for both selenium and geckodriver, could you please confirm this, thank you! |
I had a working setup with 0.11.1 and a custom profile (FFv49.0.2) for days. Then I did two things that screwed it up. I upgraded my Selenium.Support Nuget from 2.53.1 to v3 (to match my installed Selenium of v3.0) and installed Mozilla Nightly. I have no idea why either of those things would make it break, but it did. I started getting the "corrupt deflate stream" errror. I just got it to work again. I uninstalled Nightly. I then went back to my 49.0.2 mozilla and used |
Try to remove 'user.js' file from profile directory. |
How can I use my real FireFox user profile? (The existing profile that is used when I open FireFox every day.) The examples @furqanmlk and @Scr34mik provided are actually creating a new profile. Maybe you can reuse the created profile - but it not my real user profile. Using the real user profile is highly advantageous b/c sometimes there are firewall popups & security questions. My real profile has already answered those questions & won't be challenged again. A profile created by Selenium will get blocked by firewall popups in the middle of the automation test. |
Older version of Firefox picked up the existing profile but now it creates a new profile for each test. can this be fixed please? The works on Chrome and IE like it did on Firefox before. |
Geckodriver allows you to pass in the Base64 encoded zip of a profile directory (including your default) - https://github.com/mozilla/geckodriver#firefox-capabilities The specifics on how to generate the correct Options parameter will vary based on which language bindings you are using. |
Let's suppose this issue was fixed in geckodriver 0.11 (current version is 0.18) |
Meta -
OS: Win 10 x64
Selenium Version:
3.0
Browser:
Firefox
Browser Version:
Firefox 48.0.1
Expected Behavior -
geckoriver should launch Firefox48 with custom profile
Actual Behavior -
geckodriver still launches Firefox with new profile
Steps to reproduce -
01: Zip default profile folder
02: Getting default profile location
string prof = (@"...\AppData\Roaming\Mozilla\Firefox\Profiles\6uqm9vnl.default.zip");
03: Converting to base64-encoded string
var prof1 = System.Text.Encoding.UTF8.GetBytes(prof);
var prof2 = System.Convert.ToBase64String(prof1);
FirefoxProfile profile = new FirefoxProfile(prof2);
04: Initializing FirefoxDriver
new FirefoxDriver(profile);
The text was updated successfully, but these errors were encountered: