What if I want to click on the Nth item in the list?
  • 01 Apr 2022
  • 1 Minute to read
  • Contributors
  • Dark
    Light

What if I want to click on the Nth item in the list?

  • Dark
    Light

It is possible by using JavaScript.

Open the scenario details and insert the JS step where you want the click in the list.

We are studying ways that AI can be used in the future without setting JS steps.

Sample code

document.querySelector(CSSselector).click()

Rewrite the CSSselector part according to the structure of the website to be tested.


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.