I'm trying to automate a visual basic application which has several ActiveX Farpoint controls.
I'm having troubles specifically with the FarPoint Combo Control. I can't read any useful property of this control in order to select an item. Anyone has any clue about this?
I'm attaching ObjectSpy screens of this control in case it is useful..
Thank you so much!
I have made this letter longer than usual, only because I have not had the time to make it shorter. Blaise Pascal
How about a a shot of the properties tab not the methods.
You can buy my Art from: "Post Cards now available" Ian Fraser Landscape Photography
World Wide Shipping. http://mowogman.wordpress.com/
Sure.. here it goes!
Based on those properties you are out of luck with that control.
Thanks for the answer FordsRock!
I guess my only choice is:
1) Click the combo object. It opens a Window just behind this control with the items. Here, the code of how QTP records the operation of Clicking and Selecting an item:
VbWindow("MDI").VbWindow("FRMManCuen").ActiveX("Th reed Frame Control_2").ActiveX("FarPoint TabPro").ActiveX("FarPoint Combo Control").Click
Window("01 CEDULA DE CIUDADANIA_2").Click 54,29
2) Search the Item Location in this new Window with the "GetTextLocation" method.
3) Finally, click in those coordinates.
If anyone can suggest me another workaround i'll apreciate it..
Thanks in Advance!
Keep the application open and then in QTP use
ActiveX("FarPoint Combo Control").object.
and you will get list of methods that the control supports
Tarun Buy the NEW QTP Descriptive Programming Unplugged Book ** Download QTP Unplugged 2nd Edition eBook for FREE **
Thanks for the advice Tarun ... I've used the Object properties but the methods are no useful.. They are all for the "developer" side:
I'm attaching a snapshot..
Ok does this give you a value?
Hi again Tarun!
Yes, that sentence returns me "66060".. What can I do?
thanks for your time..
This is weird but good enough to try
hwnd = ....ActiveX("").GetROProperty("hwnd")
instead of last ActiveX try
...WinComboBox("hwnd:=" & hwnd").Select "#1"