Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ActiveX objects
#1
Not Solved
Smile Greetings of the Day to one and all!!!

I am writing scripts for ActiveX("DataCombo") [Class: ActiveX NameBig GrinataCombo, 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
Reply
#2
Not Solved
Hi Girish ,

Try with the below
Ex:
Code:
ActiveX("DataCombo").GetROProperty("MaxDropDownlistItems")
Reply
#3
Not Solved
Hi Sreekanth,

Thank you very much for your prompt replySmile. I will check this and let you know...

Thanks again...
Reply
#4
Not Solved
Hi Sreekanth...

"MaxDropDownlistItmes" i have checked like below.
Code:
combo_items=vbwindow("frmMain").VbWindow("frmEmployee").ActiveX("DataCombo").GetROProperty("DropDownlistItems")
msgbox combo_items

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


Attached Files Image(s)
   
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT12.0 does not recognize 64 bit ActiveX components satishsundar_KT 1 3,494 10-14-2016, 12:58 PM
Last Post: sasmita
  UFT 11.53 not identifying VB objects wrapped in activeX controls jainrash 0 2,472 07-02-2014, 03:07 PM
Last Post: jainrash
  ActiveX Objects are identifying as WinObjects bfakruddin 0 3,188 10-10-2011, 04:59 PM
Last Post: bfakruddin
  Own ActiveX control is not recognized by qtp makc61 0 2,968 06-04-2011, 09:11 PM
Last Post: makc61
  QTP and ActiveX newgoby 0 2,134 07-11-2009, 12:53 AM
Last Post: newgoby

Forum Jump:


Users browsing this thread: 1 Guest(s)