So when I am trying to start the latest Firefox with an extension from the store I run into following issue:
Exception thrown: 'System.ArgumentOutOfRangeException' in mscorlib.dll An exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll but was not handled in user code Year, Month, and Day parameters describe an un-representable DateTime.
The program '[15388] testhost.x86.exe' has exited with code -1 (0xffffffff).
Am I doing something wrong there? The problem is happening since firefox version 45 i think.
And yes I am aware that you can use an existing profile, but the performance is going downhill with that approach.
So if there is somebody who could help me out with this then i would be very grateful.
string ex = @"C:\extensions\speaktome@mozilla.com.xpi";
FirefoxOptions option = new FirefoxOptions();
FirefoxProfile profile = new FirefoxProfile();
profile.AddExtension(ex);
option.Profile = profile;
WebDriver Driver = new FirefoxDriver(option); Driver.Navigate().GoToUrl("https://www.google.com/");
Expected: Driver starts with extension enabled.
Actual: you get exception about wrong datetime.
User contributions licensed under CC BY-SA 3.0