I have a screen where I can create users
This screen is made up of 4 columns where:
I would like to know how to do the following situation
I need to inactivate let's say the third user of the list (remembering that I do not know if this user's status is active or inactive)
If the user is Active, I click on the Inactivate button If it is not, go to the next user and check the status again until you find one that is Active (I would like to disable 1 user in this case)
And then I would like to verify that the user I chose has changed the status to Inactive
The problem is that since it is a dynamic list and the screen has no search fields, I can not search for a specific user. I have to scan the entire list of users until I find the user I chose
Is there any way to do this in Selenium ?