Skip to content

Releases: hardkoded/puppeteer-sharp

v1.11

17 Dec 00:06
3263458
Compare
Choose a tag to compare

New Features

  • 8057843 Support waitUntil option for Page.SetContentAsync.
  • 1153fff Linux support!

Breaking Changes

  • 0c42e64 IConnection.Closed, Connection.Closed and CDPSeccion.Closed events were renamed to Disconnected.
  • e3dfdf1 An IConnectionTransport now needs to implement Task InitializeAsync(string url, IConnectionOptions connectionOptions, ILoggerFactory loggerFactory = null).

Changelog

  • 10561e6 Roll Chromium to r609904.
  • bc55eaa Code cleanup.
  • d606902 Remove no-sandbox option in tests.
  • 8dbd6ff Dispatch errors into a page.
  • dc19c5d Fixed event handler leak.
  • 7f07b4e Removed a couple of common allocations.
  • bd515aa New target types.

v1.10

25 Nov 18:34
da90827
Compare
Choose a tag to compare

New Features

  • 6375671 Snapshot the accessibility tree.

New APIs

  • 92cc6c7 Browser.WaitForTargetAsync.
  • e55dc2e CDPSession.CloseReason, Connection.CloseReason.
  • 6bfb270 Camel Case the world. JToken.ToObject<T>(bool camelCase).

Breaking Changes

  • ce7f7a8 Page.Frames now is based on a ConcurrentDictionary. With this change, the Frame order is no longer guaranteed.
  • 5986642 Payload.PostData is now a string (as it was supposed to be).
  • e55dc2e Improve internal exception handling. Now puppeteer-sharp will close the CDPSession or the Connection if puppeteer fails to process a message.
  • 45880a9 BufferAsync should work with binaries.

Changelog

  • e95a5c3 Roll chromium to r599821.
  • 0f2f632 Don't prematurely disable the CSS domain.
  • 5c999d7 Add missing location property to some key descriptors.
  • 7e57217 Add missing test.
  • 8d41b4f Add flags to improve reliability.
  • 5c7cc1a Handle negative area results in computeQuadArea.

v1.9

28 Oct 15:34
e6bfc38
Compare
Choose a tag to compare

New Features

var screenShotOptions = new ScreenshotOptions
{
    FullPage = true,
    BurstMode = true
};
await page.GoToAsync("https://www.google.com");
for(var x = 0; x < 100; x++)
{
    await page.ScreenshotBase64Async(screenShotOptions);
}
await page.SetBurstModeOffAsync();

New APIs

  • f764ff3 ScreenshotOptions.BurstMode and Page.SetBurstModeOff.
  • 48df933 Browser.Target.
  • 19ad79e ConnectOptions/LaunchOptions.Transport and ConnectionOptions/LaunchOptions.EnqueueTransportMessages.
  • 19ad79e Frame.GoToAsync, Frame.NavigateAsync and Frame.WaitForFrameNavigationAsync

Breaking Changes

Evaluate changes d4c5d05

EvaluateFunctionAsync and EvaluateExpressionAsync won't try to infer the output type when used without generics. It will return a ** JToken** instead.

A piece of code like this:

int x = page.EvaluateExpressionAsync("1");

Will need to be replaced by one of these two options:

int x = page.EvaluateExpressionAsync<int>("1");
int x = page.EvaluateExpressionAsync("1").ToObject<int>();

Changelog

  • b4801cc Bump the version of chromium to 594312.
  • 81a9653 Add failing test for page.select.
  • 37338c8 Fixed windows fetching.
  • 8a9fbc5 Fix description of SecurityDetails class.
  • f4465f7 Add zero width element test.
  • 94284dc Add missing configure awaits.
  • d20a35d Fix full page screenshot when defaultViewport is null.
  • 1219913 Unify response tracking in page.goto and waitForNavigation.
  • c51fab4 Don't wait for Runtime.Evaluate.
  • 7a5b155 Browser closing/disconnecting should abort navigations.
  • 972cc61 Expect Network.responseReceived event is never dispatched.
  • 8562870 Set JPG background to white when omitBackground option is used.
  • ee4224a Concurrency improvements.
  • 1c7dfcf Check if frame exists before creating a Request.

v1.8

04 Oct 01:11
7c29c54
Compare
Choose a tag to compare

New Features

  • 339c7dc Roll Chromium to r588429.

New APIs

  • e2b9191 TaskEvaluateFunctionAsync and TaskEvaluateFunctionAsync.
  • 7b5cb82 BrowserContext.OverridePermissionsAsync.
  • 7b5cb82 BrowserContext. ClearPermissionOverridesAsync.
  • 7b5cb82 Page. SetGeolocationAsync.
  • c01a17e NavigationOptions.Referer.
  • 79fe9e0 Response.RemoteAddress.
  • ad30cf5 Response.StatusText

Changelog

  • 5214cef Fix null-type bugs.
  • 157cba4 Improve PdfOptions documentation.
  • a3339a7 Create Request class right away from payload.
  • 085ff89 Drop object factory from execution context.
  • 460d905 Page.goto should properly handle historyAPI in beforeunload.
  • cf1500f New ResourceType.Ping.
  • 419a3a8 Launch with Environment Variables.

v1.7

24 Sep 11:05
c159f1f
Compare
Choose a tag to compare

New Features

  • e2c114c Typing emojis.
  • 1f3e60c Bump Chormium to r579032.
  • f6c6776 Page.ClickAsync should work with disabled javascript

New APIs

  • 6a0bdf1 New PdfOptions.PreferCSSPageSize option.
  • 5f22946 Page.GoToAsync(string url, WaitUntilNavigation waitUntil).
  • 583b240 LaunchOptions.DefaultViewport - ConnectOptions.DefaultViewport
  • 583b240 LaunchOptions. IgnoredDefaultArgs
  • 583b240 Puppeteer.DefaultArgs().
  • 61a6a27 BrowserContext.PagesAsync().
  • dd101a7 Make WaitTaskTimeoutException public.
  • 0286563 Extension improvements: ElementHandle.EvaluateFunctionAsync and JSHandle.EvaluateFunctionAsync.

Breaking Changes

  • 583b240 Dropped LaunchOptions.AppMode - ConnectOptions.AppMode

Changelog

  • 6ee54f5 Make sure referer header is reported with request interception.
  • 5d3f59b Using new browser context for every page test.
  • 3fff9a0 Don't emit an internal error when eval causes navigation.
  • c9e4daf Force KeepAliveInterval to 0.
  • e3ae546 Improve waiting for selector to be hidden error message.

v.1.6.2

15 Sep 16:59
2b5b1ea
Compare
Choose a tag to compare

Breaking Changes

  • 43bd252 Always add about:blank to default arguments.

Changelog

  • 7044f96 Bump Chromium to 575458
  • f733802 Remove header 'cookie' from request hash

v1.6

14 Sep 11:58
c18b68e
Compare
Choose a tag to compare

New Features

  • a2482c8 Support thrown strings and numbers in getExceptionMessage.
  • 93ea816 Implement PageError event from a worker.
  • 69321c0 Click wrapped links support.
  • 36d39a1 Add an option to collect coverage of anonymous scripts.
  • 050325b ElementHandle.IsIntersectingViewportAsync and Offsetclicks.

New APIs

  • cb6cf77 Page.WaitForRequestAsync and Page.WaitForResponseAsync.

Breaking Changes

  • 6162974 Remove throw in case of empty elementHandle.
  • 7b2707a EvaluateFunctionAsync and EvaluateFunctionAsync now will throw and EvaluationFailedException.

Changelog

  • 6640f5d Roll Chromium to r571375.
  • 04fa70f Migrate exposeFunction from console.debug to Runtime.installBinding.
  • 73f515d Don't pass a reference to the page into frames.
  • 59f9f3c Simplify EmulationManager.
  • c781283 Clarify docs about waitForNavigation.
  • 000dc19 Add new error reasons for request.abort().
  • b4ca3f4 Fix random tests flakiness.
  • acceb52 Test that verifies pptr works with SVG nodes.
  • 7b2707a Nicer protocol error messages.
  • f2e27c7 Add support for target.page for 'backgroud_page'.
  • a3f4175 New devices.
  • 18adf78 Fix race condition in WaitTask.
  • fb4cf11 Make Payload constructor Public.
  • fb4cf11 Fix ContinueAsync payload override.

v.1.5

01 Sep 15:27
3a44de3
Compare
Choose a tag to compare

New Features

New APIs

  • 07cdbd8 Target.Opener.
  • aa6470f Request.IsNavigationRequest.
  • 1de769f Page.IsClosed.
  • d2abe29 Change accessibilty on Payload.
  • c4b876a Page. ScreenshotBase64Async and ElementHandle.ScreenshotBase64Async.
  • 3298bd4 ElementHandle.QuerySelectorAllHandleAsync.
  • 25bc019 CDPSession.TargetType.
  • 25bc019 Page.WorkerCreated.
  • 25bc019 Page.WorkerDestroyed.
  • 25bc019 Page.Workers.

Breaking Changes

  • 7490355 Disable crash reporting by default.
  • f8b5ff5 Added .ConfigureAwait(false) to each await.
  • e510b19 Change ScreenshotOptions.Quality type.
  • 25bc019 Dropped CDPSession.TargetId.
  • 25bc019 Dropped ExecutionContext.FrameId.
  • 25bc019 Dropped ExecutionContext.IsDefault.

Changelog

  • 709cefd Chromium updated to r564778.
  • 7ef326b Update PuppeteerSharp.Tests packages versions.
  • 1f0ecbf Launch browser with 'about:blank' by default.
  • 9ad9de3 Respect timeout 0 in Page.waitForFunctionAsync.
  • cdb4c88 Add a missing test for elementHandle.
  • f19813b Pass through "background_page" types.
  • c918744 Ensure first page is created when browser is launched.
  • 31ad5b0 Improve access to files to use true asynchronous methods.
  • 67ac040 Add test that validates that pages open with userDataDir arg.
  • 539a4cf Normalize scrollbars in headful tests.
  • def5803 Disable OOPIF by default.
  • eb0a322 Not pass user options to browser constructor.
  • c043062 Verify ignoreHTTPSErrors works with puppeteer.ConnectAsync.
  • 521ec40 Update ConsoleType.

v1.4

27 Jul 11:37
8f6ced6
Compare
Choose a tag to compare

New APIs

Minor changes

  • b1f108b Rolled Chromium to r555668.
  • 1ca3e70 Status 204 support.
  • 21daa2d Report 'Log' domain entries as 'console' events.
  • b187eb1 Verify file url interception works as expected.
  • 8e62366 DownloadAsync should return revision info even if the revision was already downloaded.
  • 5b66364 Allow user gesture restricted code to be run in Page.EvaluateExpressionAsync.
  • 1a86165 Add pixel2/pixel2 xl.
  • c39f625 Add explanation to page.waitForNavigation.
  • 60c2c0e ElementHandle EvaluateFunctionAsync examples.

v1.3

23 Jul 11:42
74d434d
Compare
Choose a tag to compare

New Features

New APIs

Breaking Changes

Changelog

  • c99a35d Add an option to disable timeout for WaitForFunctionAsync
  • cd5f9ed Tracing.StopAsync now returns a string with the trace data.
  • 8bfb4d4 ViewPortOptions.DeviceScaleFactor, IsLandscape and HasTouch now has a public setter.
  • 1497c79 Page.waitForNavigation handle mixed content correctly.
  • 011908d Explicitly throw on content request for redirect response
  • 0e581d8 Consume protocol errors when initiating browser.close()