Forum Discussion
- tristaanogreEsteemed Contributor
I wouldn't necessarily map individual items... depends somewhat on how TestComplete recognizes your drop down control. If you do an Object Spy on your dropdown control, does it have a method like "ClickItem" associated with it?
- russelldContributor
- shankar_rCommunity Hero
I see drop down object is having child nodes which i guess the list options.
You can use FindChild to grab the listItem and make use of click method to click them.
like below,
function test(){ dropdownObject.Click(); //click the the drop to expend aqUtils.Delay(1000,"waiting for list render"); var listObject = dropdownObject.FindChild("<proname>","<propvalue>",1,true); if(listObject.Exists){ listObject.Click(); Log.Message("drop down clicked") }else{ Log.Message("drop down not clicked") } }
Related Content
- 11 years ago
- 6 years ago
- 12 years ago