Forum Discussion

anhhao_nguyentr's avatar
anhhao_nguyentr
Occasional Contributor
12 years ago

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,

2 Replies

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    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.

  • xiaoyuandlg's avatar
    xiaoyuandlg
    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.