10-14-2010, 01:27 AM
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:
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:
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
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