fix: add snapshots for page and elementHandle screenshots (#12411)
Fixes #12280
This commit is contained in:
parent
47045ba48d
commit
8d94ed134c
|
|
@ -4034,6 +4034,7 @@ export const commandsWithTracingSnapshots = new Set([
|
||||||
'Page.goBack',
|
'Page.goBack',
|
||||||
'Page.goForward',
|
'Page.goForward',
|
||||||
'Page.reload',
|
'Page.reload',
|
||||||
|
'Page.screenshot',
|
||||||
'Page.setViewportSize',
|
'Page.setViewportSize',
|
||||||
'Page.keyboardDown',
|
'Page.keyboardDown',
|
||||||
'Page.keyboardUp',
|
'Page.keyboardUp',
|
||||||
|
|
@ -4105,6 +4106,7 @@ export const commandsWithTracingSnapshots = new Set([
|
||||||
'ElementHandle.isHidden',
|
'ElementHandle.isHidden',
|
||||||
'ElementHandle.isVisible',
|
'ElementHandle.isVisible',
|
||||||
'ElementHandle.press',
|
'ElementHandle.press',
|
||||||
|
'ElementHandle.screenshot',
|
||||||
'ElementHandle.scrollIntoViewIfNeeded',
|
'ElementHandle.scrollIntoViewIfNeeded',
|
||||||
'ElementHandle.selectOption',
|
'ElementHandle.selectOption',
|
||||||
'ElementHandle.selectText',
|
'ElementHandle.selectText',
|
||||||
|
|
|
||||||
|
|
@ -1012,6 +1012,8 @@ Page:
|
||||||
selector: string
|
selector: string
|
||||||
returns:
|
returns:
|
||||||
binary: binary
|
binary: binary
|
||||||
|
tracing:
|
||||||
|
snapshot: true
|
||||||
|
|
||||||
setExtraHTTPHeaders:
|
setExtraHTTPHeaders:
|
||||||
parameters:
|
parameters:
|
||||||
|
|
@ -2171,6 +2173,8 @@ ElementHandle:
|
||||||
selector: string
|
selector: string
|
||||||
returns:
|
returns:
|
||||||
binary: binary
|
binary: binary
|
||||||
|
tracing:
|
||||||
|
snapshot: true
|
||||||
|
|
||||||
scrollIntoViewIfNeeded:
|
scrollIntoViewIfNeeded:
|
||||||
parameters:
|
parameters:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue