Micro Focus QTP (UFT) Forums
unable to click on WebElement in webtable - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: unable to click on WebElement in webtable (/Thread-unable-to-click-on-WebElement-in-webtable)



unable to click on WebElement in webtable - mahendra - 11-17-2011

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


RE: unable to click on WebElement in webtable - qatestbrian - 12-10-2011

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.


RE: unable to click on WebElement in webtable - Arul - 12-10-2011

Hi,

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

Thanks,
arul


RE: unable to click on WebElement in webtable - sshukla12 - 12-12-2011

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

Regards,
Sankalp