my task is to loop through several rows in a table of an application.
The tricky part is, that the indexing of this app is dynamic. This means that sometimes the first row of the table has a selector containing e.g. virtualname=‘VCheckbox7246’ />, but sometimes it is virtualname=‘VCheckbox11’ />.
However, next rows are always +1. Is there a way how to investigate what the selector of the first row is as I am not able to click on it?
First get the Number using the get attribute activity
pass the selector “virtualname”
So you can get strResult : VCheckbox11 or VCheckbox7246 , etc
To get the number exactly split the string intStartNumber=Convert.ToInt32(strResult.Replace("VCheckbox",""))
Hi @mario,
To get attribute Name follow the below instructions
Use Get Attribute Activity.
Selector : virtualname='VCheckbox*' />
Attribute Name : “virtualname”