Micro Focus QTP (UFT) Forums

Full Version: Problem with WinObject
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All,

I am facing a problem with WinObject

Actual functionality is I want find number of store Fares after that needs to be select the each Stored Fare in Issue Documents Dialog and click the "Issue Documents" button

But I am not able to select Stored Fare. If am Spy that object it show as "WinObject: Internet Expolere_Server".
Even I have seach for ChildObjects for that WinObject but it shows 0 childobjects. For more clarification I have attached the screen shot.

I am using below code.
Code:
set oChildObjects = Window("Viewpoint").Dialog("Issue Documents").WinObject("Internet Explorer_Server").ChildObjects
iNoObjects = oChildObjects.Count()
MsgBox iNoObjects

Please help on this issue.
Hi Sudheer,
where is the Attachment?
Code:
Set objChild = Description.create()
objChild("micclass").value = "WinObject"

Set objChildItems = Window("Viewpoint").Dialog("Issue Documents").ChildObjects(objChild) 'This will return all the winobjects itmes collection.
Msgbox objChildItems.count 'This will give the number of winobjects are present with in the dialog.
now you can work with this object.

Let me know if you need any more information.