Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
unable to click on WebElement in webtable
#1
Not Solved
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
Reply
#2
Not Solved
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.
Reply
#3
Not Solved
Hi,

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

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

Regards,
Sankalp
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Link in a webtable in a webtable Soulwalker 1 2,694 07-19-2017, 01:44 PM
Last Post: Ankur
  I want to click on all the links in the webtable. These links are nothing but some co abhideshpande001 0 2,565 07-22-2015, 09:36 AM
Last Post: abhideshpande001
  Unable to click on the WebButton with specified Index srach84 2 4,065 03-31-2015, 04:36 AM
Last Post: srach84
  Unable to click on WebButton in WebTable srach84 1 2,898 02-09-2015, 09:07 PM
Last Post: arpan
  Webtable actions are not getting recorded, but ObjectSpy is able to identify webtable sahilarora2000 2 3,628 06-13-2014, 04:27 PM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)