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 87bf1ad commit 341329aCopy full SHA for 341329a
lib/PuppeteerSharp.Tests/InputTests/ClickTests.cs
@@ -22,6 +22,18 @@ public async Task ShouldClickTheButton()
22
Assert.Equal("Clicked", await Page.EvaluateExpressionAsync<string>("result"));
23
}
24
25
+ [Fact]
26
+ public async Task ShouldClickSvg()
27
+ {
28
+ await Page.SetContentAsync($@"
29
+ <svg height=""100"" width=""100"">
30
+ <circle onclick=""javascript:window.__CLICKED=42"" cx=""50"" cy=""50"" r=""40"" stroke=""black"" stroke-width=""3"" fill=""red""/>
31
+ </svg>
32
+ ");
33
+ await Page.ClickAsync("circle");
34
+ Assert.Equal(42, await Page.EvaluateFunctionAsync<int>("() => window.__CLICKED"));
35
+ }
36
+
37
[Fact]
38
public async Task ShouldClickTheButtonIfWindowNodeIsRemoved()
39
{
0 commit comments