Skip to content

[dotnet core] Exception on File Upload to RemoteWebDriver / FireFox profile: System.NotSupportedException : No data is available for encoding 437 #198

@mialeska

Description

@mialeska

Getting Exception on File Upload to RemoteWebDriver

System.TypeInitializationException : The type initializer for 'System.IO.Compression.ZipStorer' threw an exception.
----> System.NotSupportedException : No data is available for encoding 437
There is a related selenium issue:
SeleniumHQ/selenium#4816
SeleniumHQ/selenium#4816 (comment)

A workaround should be included into Aquality.Selenium:

reference the System.Text.Encoding System.Text.Encoding.CodePages Nuget package and somewhere before Encoding.GetEncoding(437) gets called, make sure to call Encoding.RegisterProvider(CodePagesEncodingProvider.Instance).

Also we should use LocalFileDetector (as already used in java) for RemoteBrowserFactory

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdotnet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions