Frequently Asked Questions about JS Steps
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.