Skip to content

Commit

Permalink
fix test project build
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckShiba committed May 18, 2024
1 parent 4dc552a commit 52db68f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions Tests/BrowserDefault.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using PuppeteerExtraSharp;
using PuppeteerExtraSharp.Plugins;
using PuppeteerSharp;
Expand Down Expand Up @@ -61,7 +58,7 @@ private async void DownloadChromeIfNotExists()
await new BrowserFetcher(new BrowserFetcherOptions()
{
Path = Constants.PathToChrome
}).DownloadAsync(BrowserFetcher.DefaultChromiumRevision);
}).DownloadAsync(BrowserTag.Latest);
}

protected LaunchOptions CreateDefaultOptions()
Expand Down
4 changes: 2 additions & 2 deletions Tests/Recaptcha/AntiCaptcha/AntiCaptchaTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public async Task ShouldSolveCaptchaWithSubmitButton()
var button = await page.QuerySelectorAsync("input[type='submit']");
await button.ClickAsync();

await page.WaitForTimeoutAsync(1000);
await Task.Delay(1000);
await CheckSuccessVerify(page);
}

Expand All @@ -62,7 +62,7 @@ public async void ShouldSolveCaptchaWithCallback()

Assert.Null(result.Exception);

await page.WaitForTimeoutAsync(1000);
await Task.Delay(1000);
await CheckSuccessVerify(page);
}

Expand Down

0 comments on commit 52db68f

Please sign in to comment.