Skip to content

Releases: hardkoded/puppeteer-sharp

v1.14.1

06 May 11:14
Compare
Choose a tag to compare

Remove Mono.Posix.NETStandard dependency

v1.14

09 Apr 11:44
a3e4a89
Compare
Choose a tag to compare

New Features

Changelog

  • 9a82a81 Drop Mono dependency.
  • 9c3cf6a Roll chromium to r641577.
  • 4686eb9 Make sure frames are reported from-inside shadow DOM.
  • 079309b Add a failing test that tries to click a fixed button in an iframe.
  • 867677c Ensure Page.setBypassCSP works with iFrames.
  • 87fd1df Sync Request.Continue tests.
  • 453501a Public constructor for PaperFormat.

v1.13

27 Mar 22:02
6e97f94
Compare
Choose a tag to compare

Breaking Changes

  • 54629a6 Response.Headers changed from Dictionary<string, object> to Dictionary<string, string>

Changelog

  • a11fa94 PdfOptions should be serializable.
  • c428028 Bump chromium to r637110.
  • bddf0fc SetCacheEnable and WaitFor test updates.
  • 64b784e Input and target tests updates.
  • bada611 Emulate and SetUserAgent test updates.
  • 60a0ba6 ShouldEnableOrDisableTheCacheBasedOnTheStatePassed test improvements.
  • 1b6d718 Exclude favicon from tests.
  • c96e89b Disable flaky cookies test.
  • 6e19161 Add failing for test for mobile + cross process navigation.
  • 3bfaf8b RequestPostDataTests tests.
  • cb33496 Update ConsoleMessage.Location comments.
  • 749945c WaitForNavigationTests updates.
  • 4eb1fcd Beforeunload tests updates.
  • 69a129d New connect test.
  • 1bacd6a CloseTests updates.
  • a538fce SetRequestInterceptionTests changes.
  • 06c9932 WaitForTests changes.
  • 75fbb13 ElementHandlePress tests updates.
  • 38089e9 ExposeFunction improvements.
  • d74605d Launcher tests refactor.
  • ea7fc34 Touchscreen tests improvements.
  • 85dac55 Add failing test for bad request interception.
  • b3cb17d Override Permissions tests changes.
  • 26af946 Split out fixtures tests.
  • 2ef86e3 Move some chromium specific tests.
  • bdef51c Keyboards tests.
  • 23a6434 Add page.accessibility.snapshot tests.
  • e71b6e9 Test refactors.
  • 6fe099f Cookies tests improvements.
  • c8e2453 Click and Goto tests refactors.
  • 9398dff Minor test changes.
  • d432f02 Network tests refactor.

v1.12.1

07 Mar 00:27
f4f0a2e
Compare
Choose a tag to compare

Fix a bad Timeout

v1.12

03 Mar 20:08
88ca8ef
Compare
Choose a tag to compare

New Features

  • c76e244 Introduce Popup event.
  • e1571f6 Add browserUrl option to Puppeteer.ConnectAsync.
  • 3683608 Introduce ConsoleMessage.Location.
  • db2753d Implement support for mouseWheel (Mouse.WheelAsync).
  • 2e59b1e Introduce Page.SetDefaultTimeout.

Breaking Changes

  • 9b1a597 Provide default quality for jpeg screenshots.

Changelog

  • ae2233f Roll Chromium to r624492
  • 56f1237 Improve async loop in AddConsoleMessage.
  • ff53a36 Relax request matching heuristic.
  • 1d9bd66 Throw on 0x0 screenshots.
  • 21f43f2 Make sure evaluation does not hang in detached iframes.
  • fc66e5d Add failing test for skipping all debugger statements.
  • 3d1816e Ignore console messages from destroyed execution contexts.
  • e6c5528 Flexible ResourceType parse.
  • 7e2a64d Properly disable translate UI.
  • e4f1bd2 Filter out "intervention" header.
  • 58f2b31 Fix repetitive setContent calls.
  • 5139d88 Force color profile.
  • 74deb46 Add test for waitForFunction with cross-process navigation.
  • b1b8982 Make sure headful browser closes with beforeuload page.
  • 2d252a2 Page.WaitForFunctionAsync should work with multiline strings.
  • 1f4a71d Update device descriptors.
  • 2e687fc Round the clip dimensions.
  • 749b9a9 Enable Network Service by default.
  • 9d24cdb Warn on nested js handle.
  • 9cff529 Move to flatten protocol.
  • 0584284 Introduce DOM World.
  • 4271b97 Use secondary DOMWorld to drive page.Select.
  • 7a1de99 Always dispose cancellation token sources.
  • 73f7ea8 Use secondary world to drive clicks.
  • 3c03f62 Sync WaitForSelectorOrXPathAsync code.
  • f33e5fd Teach waitForSelector to return null.
  • 3e08289 Alternative approach to fixing KeyAlreadyAddedException.
  • 69798e4 Fix race condition between disposal and cancellation of CancellationTokenSource.
  • ca42f10 Execute frame.waitFor{Selector,XPath} in secondary world.

v1.11.2

25 Jan 13:03
db01e79
Compare
Choose a tag to compare

ChangeLog

  • 61fbd27 No need to fix file permissions on Mac.
  • 02efcdd Fix race conditions in SetContentAsync.
  • 56dffd1 Add missing ConfigureAwait in Accessibility.
  • 82a9b33 Set headless option to false when Devtools are enabled.
  • 72f8a91 CloseAsync should wait for the target to be closed.
  • 9e11c6f Change TextAsync output type.
  • 804fb6f Browser.IsClosed should be true when the connection is closed.

Internal Changes

v1.11.1

18 Dec 01:39
c0f4684
Compare
Choose a tag to compare
  • ec353c3 Fix ScrollIntoViewIfNeededAsync script
  • c0f4684 Improve TargetClosedException

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.