Skip to content

Commit cf1500f

Browse files
kblokMeir017
authored andcommitted
New ResourceType.Ping (#649)
1 parent 314b97b commit cf1500f

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
using Microsoft.AspNetCore.Http;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.IO;
5+
using System.Linq;
6+
using System.Net;
7+
using System.Net.Http;
8+
using System.Text;
9+
using System.Threading.Tasks;
10+
using Xunit;
11+
using Xunit.Abstractions;
12+
13+
namespace PuppeteerSharp.Tests.Issues
14+
{
15+
[Collection("PuppeteerLoaderFixture collection")]
16+
public class Issue0648 : PuppeteerPageBaseTest
17+
{
18+
public Issue0648(ITestOutputHelper output) : base(output)
19+
{
20+
}
21+
22+
[Fact]
23+
public async Task ShouldWork()
24+
{
25+
await Page.SetRequestInterceptionAsync(true);
26+
Page.Request += async (sender, e) => await e.Request.ContinueAsync();
27+
await Page.GoToAsync("https://www.google.com/search?q=firewall&oq=firewall&ie=UTF-8");
28+
}
29+
}
30+
}

lib/PuppeteerSharp/ResourceType.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ public enum ResourceType
6464
/// </summary>
6565
Manifest,
6666
/// <summary>
67+
/// Ping.
68+
/// </summary>
69+
Ping,
70+
/// <summary>
6771
/// Other.
6872
/// </summary>
6973
Other

0 commit comments

Comments
 (0)