Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Child Objects
#1
Solved: 10 Years, 8 Months, 1 Week ago
Hi,

I am attempting to create a collection of objects that should enable me to click an arrow image on a drop down list.

In the past I simply did this by:
Code:
Set bDesc = Description.Create()
         bDesc("micclass").Value = "Image"
         bDesc("name").Value = "Image"
Set  ImgCollect = Browser("browswer").Page("page").Webtable("webtable").ChildObjects(bDesc)

AND SO ON....

I am seeing now that the IMAGE that I clicked in the past is now actually 2 webtables deep.

Meaning if I spy on this image that I want to click, I see:
--Browser
----Page
-----Webtable
-------Webtable
-----------Image

Where before - and like in the beginning of my commment it was simply:
--Browser
----Page
-----Webtable
---------Image

I tried this:
Code:
Browser("browser").Page("page").Webtable("webtable").Webtable("webtable").childobjects(bdesc)

QTP does not like this and gives me a general runtime error. Does anyone know a way I can get around this? And click this?

Thanks,
Charles
Reply


Messages In This Thread
Child Objects - by wheelercha - 10-14-2010, 01:27 AM
RE: Child Objects - by jsknight1969 - 10-15-2010, 02:53 AM
RE: Child Objects - by KavitaPriyaCR - 10-19-2010, 11:42 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Child Object Not able to identified in Web Menu Link noor 0 1,663 01-21-2018, 04:44 PM
Last Post: noor
  Selecting child node from Wintree object ajith123 2 5,021 02-26-2014, 02:12 AM
Last Post: supputuri
  Child Objects in JavaWindow shubham 0 2,795 01-24-2014, 03:21 AM
Last Post: shubham
  unable to get the webbuttons count(child objects) qtpexpert 2 5,522 07-05-2012, 01:54 PM
Last Post: qtpexpert
  Need a Help with identify child form VB6 programm shan1234 6 4,382 08-12-2011, 11:08 AM
Last Post: gbrahma.sagar

Forum Jump:


Users browsing this thread: 1 Guest(s)