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() {