JS Steps

Prev Next
  • Updated on Oct 24, 2022
  • Published on Jun 10, 2022
You can call external APIs synchronously using this snippet. XHR snippet
  • Updated on Oct 31, 2024
  • Published on Jun 10, 2022
Cookies may be used for switching display languages and A/B tests. By using a [ JS Step ] , you can set the cookie value as follows: document.cookie = 'cookie_name=cookie_parameter'; document.cookie = 'lang=en'; /* Common language settings */...
  • Updated on Aug 29, 2022
  • Published on Aug 18, 2022
When testing, you often want to wait a certain period of time before executing the next process. In JavaScript, setTimeout() is used to add a time delay. However, since JS Step is executed asynchronously, the following process will happen befor...
  • Updated on Mar 27, 2023
  • Published on Mar 13, 2023
While we do not have a list of methods that you can use in JS Steps, methods can be used as long as the syntax is supported by the browser that you have specified as your test execution environment. If you find that code that should execute in the...
  • Updated on Mar 13, 2023
  • Published on Feb 17, 2023
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 ...