aboutsummaryrefslogtreecommitdiff
path: root/src/cdp/commands.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/cdp/commands.ts')
-rw-r--r--src/cdp/commands.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cdp/commands.ts b/src/cdp/commands.ts
index 123b9f6..d7faa34 100644
--- a/src/cdp/commands.ts
+++ b/src/cdp/commands.ts
@@ -57,6 +57,7 @@ export const COMMANDS = {
newWindow: Type.Optional(Type.Boolean()),
background: Type.Optional(Type.Boolean()),
windowId: Type.Optional(Type.Number()),
+ openerId: Type.Optional(Type.String()),
}),
Type.Object({ targetId: Type.String() }),
),
@@ -129,7 +130,12 @@ export const COMMANDS = {
// --- Runtime ---
"Runtime.evaluate": cmd(
Type.Object(
- { expression: Type.String(), returnByValue: Type.Optional(Type.Boolean()), awaitPromise: Type.Optional(Type.Boolean()) },
+ {
+ expression: Type.String(),
+ returnByValue: Type.Optional(Type.Boolean()),
+ awaitPromise: Type.Optional(Type.Boolean()),
+ userGesture: Type.Optional(Type.Boolean()),
+ },
{ additionalProperties: true },
),
Type.Object({ result: RemoteObject, exceptionDetails: Type.Optional(ExceptionDetails) }),