Forum Discussion
Could you post a screenshot of the keyword test steps that are executing this?
Typically, selecting a drop down is executed by the "ClickItem" method where you pass to that method either the string value of the item to be selected or the integer index of the item. If you are using the ClickItem method, then there may be some difference between the drop down component you are using and how TestComplete typically works with such components.
Please include, also, screenshots of the drop down control in the Object Browser displaying the full Advanced view of the properties of the object and the methods available.
Robert,
Here is the info you asked for to help flesh out the issue. As you can see I am using the ClickItem method and pulling the value to be selected from a spreadsheet. Although I don't think it makes a difference, I am seeing this behavior with drop downs that contain text as well as drop downs that are integers.
- tristaanogre7 years agoEsteemed Contributor
Please provide a screen shot like this, both for properties and methods of the object in question.
- WillyJenkins7 years agoNew Contributor
Robert,
OK, got it. Posted as requested.
- tristaanogre7 years agoEsteemed Contributor
OK, I have two ideas about this:
1) The values in the drop down box that you posted are numerical values. It is possible that the values coming from your spreadsheet are being interpreted as integers or other numeric values and the automation is assuming they are the index to be selected rather than the string. Solution: Make sure that you explicitly format the data in your spreadsheet to be "strings" if they are meant to be strings rather than numerics. This is done by using the ' symbol before the value in the spreadsheet cell.
2) There are other topics on these forums that mention difficulties with recent versions of Chrome and TC not properly selecting values from drop downs. so, if #1 doesn't pan out, I would suggest you contact SmartBear support directly https://support.smartbear.com/message/?prod=TestComplete.