Frequently Asked Questions about JS Steps
  • 13 Mar 2023
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Frequently Asked Questions about JS Steps

  • Dark
    Light

Article summary

I can't select the element that I want to perform an action on. What should I do?

In some cases, you can't use the selector you got from Developer Tools as is, for example, if an element contains dynamic data.
If you want to perform an action on a particular element but are having trouble selecting it in a JS Step, please refer to the following articles:

What is the timeout period of a JS Step?

The timeout period of a JS Step is 120 seconds.
If you need to execute a process that takes longer than 120 seconds, please split the step into multiple steps or insert a sleep step.

Are there any differences between recorded actions and JS Step actions?

Yes, there are some differences between recorded actions and JS Step actions.
The difference is due to how actions are performed.

Take a click, for example. When recording, a click action is actually performed. On the other hand, in a JS Step, the element is clicked using the HTMLElement.click() method.

Because some events are not dispatched in HTMLElement.click(), events caused by the click may not be triggered. As a result, the behavior may be different than when the element is actually clicked.

If you create a JS Step but it doesn't perform the intended behavior, it may mean that events that are set up separately need to be fired. Please contact our support team.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.