fix: add snapshots for page and elementHandle screenshots (#12411)

Fixes #12280
This commit is contained in:
Andrey Lushnikov 2022-02-28 12:52:54 -07:00 committed by GitHub
parent 47045ba48d
commit 8d94ed134c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -4034,6 +4034,7 @@ export const commandsWithTracingSnapshots = new Set([
'Page.goBack',
'Page.goForward',
'Page.reload',
'Page.screenshot',
'Page.setViewportSize',
'Page.keyboardDown',
'Page.keyboardUp',
@ -4105,6 +4106,7 @@ export const commandsWithTracingSnapshots = new Set([
'ElementHandle.isHidden',
'ElementHandle.isVisible',
'ElementHandle.press',
'ElementHandle.screenshot',
'ElementHandle.scrollIntoViewIfNeeded',
'ElementHandle.selectOption',
'ElementHandle.selectText',

View File

@ -1012,6 +1012,8 @@ Page:
selector: string
returns:
binary: binary
tracing:
snapshot: true
setExtraHTTPHeaders:
parameters:
@ -2171,6 +2173,8 @@ ElementHandle:
selector: string
returns:
binary: binary
tracing:
snapshot: true
scrollIntoViewIfNeeded:
parameters: