Forum Discussion
3 Replies
Sort By
- sanjay0288Frequent Contributor
Hi,
You can use object.ClickItem(<drop down item name>) to select the dropdown option.
Sample code is given below as reference
def DropDown():
objBrowser = Sys.Browser("iexplore")
objBrowser.ToUrl("http://support.smartbear.com/message/?prod=TestComplete")
page = objBrowser.Page("*https:*")
cBox = page.FindChild("Name", "Select(""lstAnswer"")", 100)
cBox.ClickItem("None of the above")
Hope this might be of help.
Regards,
Sanjay
- sanjay0288Frequent Contributor
The above sample is assuming that you are using python as scripting language for your Test Complete project.