Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 26, 2024

Bumps PuppeteerSharp from 13.0.2 to 14.0.0.

Release notes

Sourced from PuppeteerSharp's releases.

v14.0.0

Breaking changes

  • Hopefully, this is not a big deal. But IElementHandle.ScreenshotAsync(... ScreenshotOptions) was renamed to IElementHandle.ScreenshotAsync(... ElementScreenshotOptions) in hardkoded/puppeteer-sharp#2376

What's New

You can now wait for a device prompt!

var promptTask = Page.WaitForDevicePromptAsync();
await Task.WhenAll(
    promptTask,
    Page.ClickAsync("#connect-bluetooth"));

var devicePrompt = await promptTask; await devicePrompt.SelectAsync( await devicePrompt.WaitForDeviceAsync(device => device.Name.Contains("My Device")).ConfigureAwait(false) );

Now you can use AddRequestInterceptor instead of the Request page and give the ContinueAsync, AbortAsync and RespondAsync different priorities.

Page.AddRequestInterceptor(request =>
{
    if (request.Url.EndsWith(".css"))
    {
        var headers = request.Headers;
        headers["xaction"] = "continue";
        return request.ContinueAsync(new Payload() { Headers = headers, }, 4);
    }
    return request.ContinueAsync(new Payload(), 0);
});

Page.AddRequestInterceptor(request => { if (request.Url.EndsWith(".css")) { Dictionary<string, object> headers = []; foreach (var kvp in request.Headers) { headers.Add(kvp.Key, kvp.Value); } </tr></table>

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [PuppeteerSharp](https://github.com/hardkoded/puppeteer-sharp) from 13.0.2 to 14.0.0.
- [Release notes](https://github.com/hardkoded/puppeteer-sharp/releases)
- [Commits](hardkoded/puppeteer-sharp@v13.0.2...v14.0.0)

---
updated-dependencies:
- dependency-name: PuppeteerSharp
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot requested a review from stesee as a code owner January 26, 2024 15:59
@dependabot dependabot bot added .NET Pull requests that update .net code dependencies Pull requests that update a dependency file labels Jan 26, 2024
@stesee stesee merged commit 830de4b into main Jan 26, 2024
@stesee stesee deleted the dependabot/nuget/PuppeteerSharp-14.0.0 branch January 26, 2024 16:21
@github-actions github-actions bot locked and limited conversation to collaborators Jan 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Pull requests that update a dependency file .NET Pull requests that update .net code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants