Skip to content

Commit

Permalink
Change file names for execute commands. (#3898)
Browse files Browse the repository at this point in the history
  • Loading branch information
garg3133 authored Aug 30, 2023
1 parent 8ae7e0a commit a632e83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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() {
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit a632e83

Please sign in to comment.