diff --git a/README.md b/README.md index 4c09563..e6fd849 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ +Forked from [Origin](https://github.com/BrowserStackCE/percy-csharp-selenium), fixed a cast type error and remove .Net 4.5 4.6 4.7 + # Percy C# Selenium -[Percy](https://percy.io) visual testing for C#.NET Selenium. (Supports both .NET Core and .NET Framework - 4.5 to 4.8) +[Percy](https://percy.io) visual testing for C#.NET Selenium. (Supports both .NET Core and .NET Framework - 4.8) ## Requirements diff --git a/percy-csharp-selenium/Percy.cs b/percy-csharp-selenium/Percy.cs index 7e093b6..9329da0 100644 --- a/percy-csharp-selenium/Percy.cs +++ b/percy-csharp-selenium/Percy.cs @@ -272,7 +272,7 @@ private String BuildSnapshotJS(String enableJavaScript) { StringBuilder jsBuilder = new StringBuilder(); // the double {{ and }} are needed to escape the curly braces - jsBuilder.Append(String.Format("return PercyDOM.serialize({{ enableJavaScript: {0} }})\n", enableJavaScript.ToLower())); + jsBuilder.Append(String.Format("return PercyDOM.serialize({{ enableJavaScript: {0}, stringify_response: true }})\n", enableJavaScript.ToLower())); return jsBuilder.ToString(); } @@ -282,4 +282,4 @@ private void Log(String message) } } -} \ No newline at end of file +} diff --git a/percy-csharp-selenium/percy-csharp-selenium.csproj b/percy-csharp-selenium/percy-csharp-selenium.csproj index 53850c9..c8c9c98 100644 --- a/percy-csharp-selenium/percy-csharp-selenium.csproj +++ b/percy-csharp-selenium/percy-csharp-selenium.csproj @@ -2,7 +2,7 @@ Exe - netcoreapp3.1;net45;net46;net47;net48 + netcoreapp3.1;net48 percy_csharp_selenium 1.0.1-alpha 1.0.1-alpha