QTP xml parser
i am trying to write a function where i will pass test Object as argument and will return it's object hierarchy starting from root.
i mean to say i am trying to fetch an test object path from the object repository.....say for example for a test object "Button" the value should be returned as Windows("Flight Reservation").winbutton("Button")
Re: QTP xml parser
Window("Flight Reservation").ToString will return you
"Flight Reservation Window", so you can extract the object name from that and then you can use GetTOProperty("parent") to actually get the parent object and get the complete hierarchy as such