We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e31727c commit 7022ca1Copy full SHA for 7022ca1
lib/PuppeteerSharp.Tests/ElementHandleTests/HoverTests.cs
@@ -0,0 +1,20 @@
1
+using System;
2
+using System.Threading.Tasks;
3
+using Xunit;
4
+
5
+namespace PuppeteerSharp.Tests.ElementHandleTests
6
+{
7
+ [Collection("PuppeteerLoaderFixture collection")]
8
+ public class HoverTests : PuppeteerPageBaseTest
9
+ {
10
+ [Fact]
11
+ public async Task ShouldWork()
12
13
+ await Page.GoToAsync(TestConstants.ServerUrl + "/input/scrollable.html");
14
+ var button = await Page.QuerySelectorAsync("#button-6");
15
+ await button.HoverAsync();
16
+ Assert.Equal("button-6", await Page.EvaluateExpressionAsync<string>(
17
+ "document.querySelector('button:hover').id"));
18
+ }
19
20
+}
0 commit comments