Micro Focus QTP (UFT) Forums

Full Version: unable to click on WebElement in webtable
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi to All,

In my scenario,
I want to click on webelenments inside the webtable,in webtable 36 webelements are there,i am using below code
.............................................
Code:
For j = 1 to 36
Set Oparent = Browser("bname").Page("pname").WebTable("Table1").ChildItem(j,1,"WebElement",0)
   tName=Oparent.GetROProperty("innertext")
   Oparent.Click
Next
.................................................
it clicks first 3 web elements and then throws error "The statement contains one or more invalid functional arguements" in the childitem method line.
what may be the reason?
Iam using QTP 9.2
Plz help me anyone
It may be when you get to your third iteration that your column or row is off in terms of what number you are looking for.
Hi,

I thought , 4th row 1st column , webelement is getting changed/ it divides as another webtable.please check.

Thanks,
arul
Could you please attach the screen shot so that we can look into the matter in detail.

Regards,
Sankalp