ActiveX objects - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others) +--- Thread: ActiveX objects (/Thread-ActiveX-objects) |
ActiveX objects - Girish_Pai - 07-08-2009 Greetings of the Day to one and all!!! I am writing scripts for ActiveX("DataCombo") [Class: ActiveX NameataCombo, PrgID: MSDataListLib.DataCombo.1, NativeClass: DataComboWndClass] object to get its item count or present items in it. Its combo box kind of object and getting identified properly in QTP. But in this object, i am not getting methods like GetItem, GetItemCount, GetContent as we get in VB Combo Box. Can i include these methods in dataCombo?. Whenever i try to change its identification in Tools-> Object Identification-> User Defined and Pointing to that object, its giving : "This is a standard class object and therefore cannot be mapped." message. Or at least by using existing methods can I get item(s) present in it?. Existing Methods are, CaptureBitmap, CheckProperty, ChildProperty, ChildObjects,Click, DblClick, Drag, Drop,Exist, FireEvent, GetROProperty, GetTextLocation, GetTOProperties, GetTOProperty, GetVisibleText,MakeVisible,MouseMove,Object,SetTOProperty,ToString,Type and WaitProperty. How it can be solved?Please guide. Thanks and regards. Girish Pai RE: ActiveX objects - sreekanth chilam - 07-09-2009 Hi Girish , Try with the below Ex: Code: ActiveX("DataCombo").GetROProperty("MaxDropDownlistItems") RE: ActiveX objects - Girish_Pai - 07-10-2009 Hi Sreekanth, Thank you very much for your prompt reply. I will check this and let you know... Thanks again... RE: ActiveX objects - Girish_Pai - 07-21-2009 Hi Sreekanth... "MaxDropDownlistItmes" i have checked like below. Code: combo_items=vbwindow("frmMain").VbWindow("frmEmployee").ActiveX("DataCombo").GetROProperty("DropDownlistItems") Code is executing fine. But its generating message box without any value(Check attached jpg file.) Can u let me know where I can get methods, which you told?... like u told ("DropDownlistItems").I tried with help file and google search for similar methods. Still no result. Thanks and Regards. Girish |