Skip to content

Commit

Permalink
#848 Upgrade Selenium.WebDriver package reference to v4.28.0
Browse files Browse the repository at this point in the history
  • Loading branch information
YevgeniyShunevych committed Jan 25, 2025
1 parent b95a69a commit eb903c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/Atata/Atata.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ Features:
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Selenium.WebDriver" Version="4.26.1" />
<!-- Temporarily referencing System.Text.Json v8.0.5, because Selenium.WebDriver referencing vulnerable v8.0.4. -->
<PackageReference Include="System.Text.Json" Version="8.0.5" />
<PackageReference Include="Selenium.WebDriver" Version="4.28.0" />
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.6.0" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public FileContentWithExtension TakeScreenshot(WebDriverSession session)
.GetAwaiter()
.GetResult();

var data = commandResult["data"].ToString();
string data = commandResult.Value.GetProperty("data").GetString();
return FileContentWithExtension.CreateFromBase64String(data, ".png");
}
}
2 changes: 1 addition & 1 deletion src/Atata/Logging/Snapshots/CdpPageSnapshotStrategy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public FileContentWithExtension TakeSnapshot(WebDriverSession session)
.GetAwaiter()
.GetResult();

var data = commandResult["data"].ToString();
string data = commandResult.Value.GetProperty("data").GetString();
return FileContentWithExtension.CreateFromText(data, ".mhtml");
}
}

0 comments on commit eb903c2

Please sign in to comment.