Skip to content

Execute Javscript Commands: JSEXECUTE

The Execute Javscript Commands action is used to directly execute JavaScript commands on specified web elements within a web page. This action is particularly useful when users want to interact with elements in ways that standard automation actions might not support, such as scrolling an element into view or running complex JavaScript operations on an element.

Example: Suppose you’re automating a webpage and want to scroll a specific element, such as a “Submit” button, into view. You can use the JavaScript command arguments[0].scrollIntoView(true); to accomplish this.

Steps to configure:

  1. Select JSEXECUTE from the Action drop-down.
  2. In the Screen Name field, specify the relevant screen (e.g., “Form Page”).
  3. In the Element Key field, enter the identifier for the element to scroll (e.g., “Submit Button”).
  4. In the Parameters section, add the JavaScript command: arguments[0].scrollIntoView(true); to trigger the scroll.
Note: While the steps are the same in both views, the display may differ slightly:
v7_huloop_actions_jsexecute_list_view
List View
v7_huloop_actions_jsexecute_grid_view
Grid View
Note: Ensure that the Screen Name and Element Key are set up correctly before using this action.

Expected Outcome on Execution: The Execute Javascript Commands will use JavaScript to scroll the specified “Submit” button into view, making it fully visible within the user’s screen, ready for any further interactions required in the automation process.

Last updated: Oct 9, 2025
Back To Top