Forum Discussion
As far as I can tell, there are three different supported Telerick drop down/combobox controls natively supported in TC 12:
Windows.Controls.RadDropDownButton, WinControls.UI.RadComboBox, and Windows.Controls.RadComboBox
More specifically, reference https://support.smartbear.com/testcomplete/docs/reference/test-objects/controls/web/telerik/index.html
If your control is not one of these or derive from one of these, I'm not sure TC will see it as the type of control you are looking for, at least not with the wrapper methods like "ClickItem".
Have you taken a look to see if there are any other methods on the Panel (div) that are under the advanced properties/methods of the component? It could be that something exists but you would need to call it deliberately rather than relying on TC's wrappers.
Also, is there a "DropDown" method on the control anywhere that would open the drop down menu?
If you can, could you post a Screenshot of the expanded properties and methods tabs of the indicated panel? That might us better help you.
OK, thanks for the info. I think this got me going in the right direction as I did find that this object we are using is not one of the supported Telerik controls. Turns out the class name is RadDropDownList. Since it's brand new to our application, I'm going to try and get the developer to use one of the combo box controls. I'll post a follow up in the near future or if anyone has any idea how to handle this RadDropDownList control, let me know. Otherwise I'll keep digging...
- AlexKaras8 years agoChampion Level 3
Hi,
It is pretty common for different web frameworks to implement combo-boxes as a combination of label/text box/etc. and a list box.
As this given combo-box is not from the list of controls that TestComplete provides extended support to, I would suggest to examine it using TestComplete's Object Spy. Try the following:
-- Navigate to the page with this control;
-- Launch Object Spy and switch it to the Point and Fix mode (button with the arrow on the Spy's toolbar panel);
-- Using the mouse click the drop-down to open it, hover the opened list with the mouse, wait until TestComplete recognizes it (this can be seen on the Spy's panel) and press Ctrl-Shift-A to fix the object in the Object Spy.
Check how TestComplete recognizes the drop-down list. If it is of TextBox or similar type, then this given combo-box control is emulated as a combination of two different controls.
If the above is you case, then to work with this control you will need to click on the label/textbox/etc. to open the drop-down (it may be needed to click not in the center of the control, but, for example, 5 pixels left from control's right boundary, depends on the control's implementation), switch to the control with the items list (search for it, most probably, it will be either on the same level as the first textbox, or direct child of the page) and select the needed item from there.
Related Content
- 12 months agomtsapa