Selenium + Firefox = The type initializer for 'System.IO.Compression.ZipStorer' threw an exception
The type initializer for 'System.IO.Compression.ZipStorer' threw an exception.
No data is available for encoding 437. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.
Solução:
Primeiro é necessário adicionar via nuget "System.Text.Encoding.CodePages".
Então antes da execução do comando que está causando o erro executar o seguinte comando:
System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);
Comentários
Postar um comentário