From 12c15a7dc74d58dac9055fb6938d6b46eec6b751 Mon Sep 17 00:00:00 2001 From: Edward Zhou Date: Mon, 7 Jul 2025 11:56:37 +0800 Subject: [PATCH] call any custom command extension directly without adding new commands like 'getTextWithCommandExtension' 'dragAndDropWithCommandExtension' --- driver/lib/commands/execute.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/driver/lib/commands/execute.ts b/driver/lib/commands/execute.ts index d290163c..44acf8ae 100644 --- a/driver/lib/commands/execute.ts +++ b/driver/lib/commands/execute.ts @@ -162,6 +162,11 @@ const commandHandlers: CommandMap = { command: 'getTextWithCommandExtension', findBy: params.findBy, }), + customCommandExtension: async (driver, params) => + await driver.socket.executeSocketCommand({ + command: params.command, + ...params.args, + }), }; export const execute = async function ( this: FlutterDriver,