Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get a specific image inside a webtable
#6
Not Solved
Hi,
I have another problem, when I used childItem and childItemCount, I encountered "Object required".
Below is my code:

Code:
rWebBox = Browser("micclass:=Browser").Page("micclass:=Page").WebTable("micclass:=WebTable", "name:=checkAll").RowCount

For i=1 to rWebBox
    cWebBox = Browser("micclass:=Browser").Page("micclass:=Page").WebTable("micclass:=WebTable", "name:=checkAll").childItemCount(i,1, "Image")
        For j=0 to cWebBox
            Set iWebBox = Browser("micclass:=Browser").Page("micclass:=Page").WebTable("micclass:=WebTable", "name:=checkAll").childItem(i,1, "Image", cWebBox)
                roWebBox = iWebBox.getROProperty("alt")
        Next
Next

Below is the code which QTP says "Object Required":
Code:
Set iWebBox = Browser("micclass:=Browser").Page("micclass:=Page").WebTable("micclass:=WebTable", "name:=checkAll").childItem(i,1, "Image", cWebBox)

Can you help me to solve this.

Thanks, Smile
Reply


Messages In This Thread
RE: How to get a specific image inside a webtable - by grave711 - 05-29-2012, 07:15 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Read Content inside PDF kotaramamohana 0 1,203 09-02-2020, 05:49 PM
Last Post: kotaramamohana
Question Find specific records in a SwfTreeView on different node levels lotos 0 2,419 10-06-2017, 05:14 AM
Last Post: lotos
  Link in a webtable in a webtable Soulwalker 1 2,843 07-19-2017, 01:44 PM
Last Post: Ankur
  Click on calender on specific date. venkatesh9032 1 3,902 12-02-2015, 07:30 PM
Last Post: nistalaramesh
  Fetching total number of records inside a webtable vidya2k2 2 3,897 06-15-2015, 02:55 PM
Last Post: venkatesh9032

Forum Jump:


Users browsing this thread: 3 Guest(s)