From c2250ad36aaa2b4dc73d8a78b2ae1d4516f69403 Mon Sep 17 00:00:00 2001 From: Priyansh Garg Date: Thu, 24 Aug 2023 22:04:48 +0530 Subject: [PATCH] Change file names for execute commands. --- .../document/{executeAsync.js => executeAsyncScript.js} | 4 ++-- .../client-commands/document/{execute.js => executeScript.js} | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename lib/api/client-commands/document/{executeAsync.js => executeAsyncScript.js} (95%) rename lib/api/client-commands/document/{execute.js => executeScript.js} (96%) diff --git a/lib/api/client-commands/document/executeAsync.js b/lib/api/client-commands/document/executeAsyncScript.js similarity index 95% rename from lib/api/client-commands/document/executeAsync.js rename to lib/api/client-commands/document/executeAsyncScript.js index 2719ae29c6..935a3e902b 100644 --- a/lib/api/client-commands/document/executeAsync.js +++ b/lib/api/client-commands/document/executeAsyncScript.js @@ -1,5 +1,5 @@ const ClientCommand = require('../_base-command.js'); -const {isFunction} = require('../../../utils'); +const {isFunction} = require('../../../utils/index.js'); /** * Inject a snippet of JavaScript into the page for execution in the context of the currently selected frame. The executed script is assumed to be asynchronous. @@ -52,7 +52,7 @@ const {isFunction} = require('../../../utils'); */ class ExecuteAsyncScript extends ClientCommand { static get namespacedAliases() { - return ['document.executeAsyncScript', 'executeAsync', 'executeAsyncScript']; + return ['document.executeAsync', 'executeAsync', 'executeAsyncScript']; } static get isTraceable() { diff --git a/lib/api/client-commands/document/execute.js b/lib/api/client-commands/document/executeScript.js similarity index 96% rename from lib/api/client-commands/document/execute.js rename to lib/api/client-commands/document/executeScript.js index f3af809ddf..165d8358ae 100644 --- a/lib/api/client-commands/document/execute.js +++ b/lib/api/client-commands/document/executeScript.js @@ -1,5 +1,5 @@ const ClientCommand = require('../_base-command.js'); -const {isFunction} = require('../../../utils'); +const {isFunction} = require('../../../utils/index.js'); /** * Inject a snippet of JavaScript into the page for execution in the context of the currently selected frame. The executed script is assumed to be synchronous. @@ -53,7 +53,7 @@ const {isFunction} = require('../../../utils'); */ class ExecuteScript extends ClientCommand { static get namespacedAliases() { - return ['document.executeScript', 'execute', 'executeScript']; + return ['document.execute', 'execute', 'executeScript']; } static get isTraceable() {