Skip to content

Commit

Permalink
page screenshot options
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelEinbinder committed May 14, 2021
1 parent 414de77 commit 3f76e33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions types/types.d.ts
Expand Up @@ -2418,7 +2418,7 @@ export interface Page {
* Returns the buffer with the captured screenshot.
* @param options
*/
screenshot(options?: ScreenshotOptions): Promise<Buffer>;
screenshot(options?: PageScreenshotOptions): Promise<Buffer>;

/**
* This method waits for an element matching `selector`, waits for [actionability](https://playwright.dev/docs/actionability) checks, waits until
Expand Down Expand Up @@ -11319,7 +11319,7 @@ interface PageWaitForFunctionOptions {
timeout?: number;
}

export interface ScreenshotOptions {
export interface PageScreenshotOptions {
/**
* An object which specifies clipping of the resulting image. Should have the following fields:
*/
Expand Down
2 changes: 1 addition & 1 deletion utils/generate_types/exported.json
Expand Up @@ -7,5 +7,5 @@
"BrowserNewContextOptionsViewport": "ViewportSize",
"BrowserNewContextOptionsGeolocation": "Geolocation",
"BrowserNewContextOptionsHttpCredentials": "HTTPCredentials",
"PageScreenshotOptions": "ScreenshotOptions",
"PageScreenshotOptions": "PageScreenshotOptions"
}

0 comments on commit 3f76e33

Please sign in to comment.