-
-
Notifications
You must be signed in to change notification settings - Fork 8k
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
Exception thrown when instantiating FirefoxDriver on C# .NET #4816
Comments
Can you reproduce it with normal Firefox, not TorBrowser? |
No, unfortunately. So I'm not even sure where I should start looking. |
Tor Browser is not supported at present, watch #4239 |
I'm going to close this for now since there might tons of issues with Tor Browser + Selenium, but this is fine as long as it's not supported. Feel free to jump in the conversation in #4239. |
@p0deje Can this be reopened? This is not a Tor browser issue. I can reproduce with regular Firefox, running on .net core 2.0 on Windows. Reproduction code:
Error:
Looks like the ZipStorer code needs encoding 437. .NET core removes built-in support for many less common encodings, including 437. To make the encoding available in .NET core, you need to reference the As a workaround users can do the above steps in their own code. |
…psula. Includes workaround for Selenium bug SeleniumHQ/selenium#4816.
Thanks very much for the workaround @LHCGreg - although I think |
Yes, sorry, I got the link correct but the name wrong. |
Same exception is thrown when uploading file with
@LHCGreg workaround works here also. Thanks a lot! |
Also confirmed workaround works for netcore2.2 + chromedvier |
I don’t want to lock discussion on this issue. The ZipStorer code has been removed entirely from the code base for the 4.0 development cycle. Users should at least give the 4.0 alpha 1 before commenting. |
As the most recent comment says, please use the referenced version and keep an eye on the upcoming releases. Will close this issue since it has been fixed on |
Meta -
OS: Windows 10 and Mac OS
Selenium Version: WebDriver 3.6.0, C#
Browser: Tor Browser
Browser Version: 7.0.6 (based on Firefox 52.4.0 (64-Bit))
Expected Behavior -
According to the Nuget page, the WebDriver supports .Net Standard 2.0.
Actual Behavior -
when running on a .NET Core 2.0 console project, I encountered an exception
System.TypeInitializationException: The type initializer for 'System.IO.Compression.ZipStorer' threw an exception. ---> System.NotSupportedException: No data is available for encoding 437.
Steps to reproduce -
Just start a new project and instantiate FirefoxDriver by
Am I doing anything incorrectly here?
Please advise, thank you.
The text was updated successfully, but these errors were encountered: