First of all I am very happy finding this awesome forum!! My first dsay and first post!!!
Anyway, Let's jump into the problem!
In one of QTP Scripts I have to add one row in each iteration in a Web-Table. I will have to add 1000 rows in this way, so 1000 iterations!!OMG
Problem is that in each newly added row there are multiple Objects (Edit box and List). I need to perform action on all objects in each row. Please see below screen-shot.
I had the same kind of problem last week. But only one weblist was being added in each iteration. I wrote the following code.It works fine.
But in today's scenario in each iteration multiple objects are being added (Edit box and List) in the run. I am confused how to identify them individually. Please help Gurus.
Anyway, Let's jump into the problem!
In one of QTP Scripts I have to add one row in each iteration in a Web-Table. I will have to add 1000 rows in this way, so 1000 iterations!!OMG
Problem is that in each newly added row there are multiple Objects (Edit box and List). I need to perform action on all objects in each row. Please see below screen-shot.
I had the same kind of problem last week. But only one weblist was being added in each iteration. I wrote the following code.It works fine.
Code:
Browser("...").Page("...").Link("AddRoles").Click
Set Desc = Description.Create()
Desc("micclass").Value = "WebList"
Set Lists= Browser("...").Page("...").WebTable("Roles").ChildObjects(Desc)
Lists.Count
Max = Lists.Count -1
For x = 1 to Max
Lists(x).Select "....."
Next
Browser("...").Page("...").WebList("....."). Select "......"
End If
But in today's scenario in each iteration multiple objects are being added (Edit box and List) in the run. I am confused how to identify them individually. Please help Gurus.