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 f92b3d5 commit a077acb
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 @@ -33,9 +33,7 @@ Features:
<ItemGroup>
<PackageReference Include="Atata.WebDriverExtras" Version="3.0.0" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<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" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public FileContentWithExtension TakeScreenshot(AtataContext context)
.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(AtataContext context)
.GetAwaiter()
.GetResult();

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

0 comments on commit a077acb

Please sign in to comment.