Replies: 1 comment 6 replies
-
By default Taiko returns the first match. There's documentation with a few examples at https://docs.taiko.dev/working_with_element_lists/ if you want to work with multiple matches and loop through them. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello how are you? I'm pretty new and I'm building a code but I'm pretty locked up.
I would like to know if it is possible to do a loop of actions in sequence of equal objects.
The objects are the same to identify, but they are not the same in practice, each one represents a profile of a user. The page sometimes has 2,3,4... profiles
I'm not able to make Taiko go to the next same object later to perform the actions on the object and I don't know how to create an efficient loop for an indeterminate number
Example 1:
Object 1 = $('div.navigation-icon');
Action code
goto url
Example 2
Object 1 = $('div.navigation-icon');
Action code
Object 2 = $('div.navigation-icon');
Action code
goto url
Example 3
Object 1 = $('div.navigation-icon');
Action code
Object 2 = $('div.navigation-icon');
Action code
Object 3 = $('div.navigation-icon');
Action code
goto url
Beta Was this translation helpful? Give feedback.
All reactions