File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
examples/dotnet/SeleniumDocs Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,7 @@ public async Task CaptureElementScreenshot()
39
39
40
40
var element = ( await context . LocateNodesAsync ( new Locator . Css ( "#checky" ) ) ) [ 0 ] ;
41
41
42
- //TODO: ShareId is a type, not string
43
- var screenshot = await context . CaptureScreenshotAsync ( new ( ) { Clip = new ClipRectangle . Element ( new ( element . SharedId ) ) } ) ;
42
+ var screenshot = await context . CaptureScreenshotAsync ( new ( ) { Clip = new ClipRectangle . Element ( element ) } ) ;
44
43
45
44
Assert . IsNotNull ( screenshot ) ;
46
45
Assert . IsNotNull ( screenshot . Data ) ;
Original file line number Diff line number Diff line change 10
10
<PackageReference Include =" Microsoft.IdentityModel.Tokens" Version =" 7.7.1" />
11
11
<PackageReference Include =" MSTest.TestAdapter" Version =" 3.6.0" />
12
12
<PackageReference Include =" MSTest.TestFramework" Version =" 3.6.0" />
13
- <PackageReference Include =" Selenium.Support" Version =" 4.27.0 " />
14
- <PackageReference Include =" Selenium.WebDriver" Version =" 4.27.0 " />
13
+ <PackageReference Include =" Selenium.Support" Version =" 4.28.0-nightly202411252021 " />
14
+ <PackageReference Include =" Selenium.WebDriver" Version =" 4.28.0-nightly202411252021 " />
15
15
</ItemGroup >
16
16
17
17
<ItemGroup >
You can’t perform that action at this time.
0 commit comments