Unable to launch FF48 with using custom / default profile

RESOLVED INCOMPLETE

Status

Testing
geckodriver
--
blocker
RESOLVED INCOMPLETE
a year ago
5 months ago

People

(Reporter: furqanmlk, Unassigned)

Tracking

48 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

a year ago
User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0
Build ID: 20160604131506

Steps to reproduce:

string AppDataPath  =Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
string FireFoxe_ProfilePath = (AppDataPath) + @"\Mozilla\Firefox\Profiles\";
string[] profileFolder = Directory.GetDirectories(FireFoxe_ProfilePath);
FirefoxProfile profile = new FirefoxProfile(profileFolder[0]);
new FirefoxDriver(profile)


Actual results:

Throws following error,

System.InvalidOperationException: corrupt deflate stream Result StackTrace: at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse) at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters) at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities) at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities) at OpenQA.Selenium.Firefox.FirefoxDriver..ctor(FirefoxDriverService service, FirefoxOptions options, TimeSpan commandTimeout) at OpenQA.Selenium.Firefox.FirefoxDriver..ctor(FirefoxOptions options)
at OpenQA.Selenium.Firefox.FirefoxDriver..ctor(FirefoxProfile profile) at SaAutoLib.WebBrowsers.FirefoxBrowser.StartWebDriver() in c:\branch-SaAuto-Refactor\SaAutoLib\WebBrowsers\FirefoxBrowser.cs:line 49 at SaAutoLib.WebBrowsers.WebBrowserBase..ctor(WebBrowsers acronym) in c:\branch-SaAuto-Refactor\SaAutoLib\WebBrowsers\WebBrowserBase.cs:line 27 at SaAutoLib.WebBrowsers.FirefoxBrowser..ctor() in c:\branch-SaAuto-Refactor\SaAutoLib\WebBrowsers\FirefoxBrowser.cs:line 14


Expected results:

Firefox should be launched with desired profile
(Reporter)

Updated

a year ago
Severity: normal → blocker
(Reporter)

Updated

a year ago
Summary: Unable to launch FF48 using custom / default profile → Unable to launch FF48 with using custom / default profile
Please include the verbose output from geckodriver after you pass the -vv flag.
(Reporter)

Comment 2

a year ago
(In reply to Andreas Tolfsen ‹:ato› from comment #1)
> Please include the verbose output from geckodriver after you pass the -vv
> flag.

Thanks Andreas for reply,

I am sorry I am using C# to launch FF with geckodriver. 
Can you please help me where should I add verbose flag?
(Reporter)

Comment 3

a year ago
geckodriver still does not launch desired profile

01: Zip default profile folder

02: Getting default profile location
string AppDataPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
string FireFoxe_ProfilePath = (AppDataPath) + @"\Mozilla\Firefox\Profiles\";
string[] profileFolder = Directory.GetDirectories(FireFoxe_ProfilePath);
string prof = (@"C:\Users\Fmalik\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);
this area of code has been rewritten recently so closing.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 5 months ago
Resolution: --- → INCOMPLETE
Component: Marionette → geckodriver
You need to log in before you can comment on or make changes to this bug.