Showing results for 
Search instead for 
Did you mean: 

How to distinguish textbox, comboBox or calendar after using Find menthod

Occasional Contributor

How to distinguish textbox, comboBox or calendar after using Find menthod

After i used ["NativeWebObject"]["Find"] to find and result is a object (or null), i need to distinguish that object is textbox , combobox or calendar.

Please help me in this case.

Thanks and best regards

Hao Nguyen,
The word is not enough
Community Manager

Hi Hao,


There should be a property that you can use to distinguish among the found objects, for example ObjectType. Try to find the needed one by exploring objects in the Object Browser.

Tanya Gorbunova
SmartBear Community Manager

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
Occasional Contributor

What an interesting question, which I never considered before. I thought I was familiar with the combobox control and calendar control, but I always in error in some detailed space. This question is insightful and the fine answer here do great helps.
New Here?
Join us and watch the welcome video:
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

Get properties of a web page element

See replies!

Compare images using the Region Checkpoint

See replies!

Compare HTML table with Excel file and correct data in Excel file


How to execute remote test and obtain results via Test Runner REST API

Top Kudoed Authors