Forum Discussion
How you get the full item count depends entirely what type of dropdown/combo box it is. They are not all the same, and you don't interpret them all the same.
What language is the application, and what is the class of the combo/dropdown in question?
Also, I don't get why it drops 21 times going by that two line code snippet. All you are doing in that is assigning the control to an object variable, and then posting one of it's properties to the log. Right?
Nothing there looks it should actually be triggering the control. Is that code inside a loop or something? Looks like something else is happening, but impossible to say without seeing the rest of the code those two lines reside in.
The code from karthick7 is not really what you're after.
It doesn't explain the constant re-activation of the control. It does what you currently do (assign it and extract a property) but then uses that to go through an array and try and match the array content against the dropdown content. It doesn't account for duplicate entries on either side very well (which may or may not be allowed). It also assumes that the basic dropdown methods and properties will all work on all controls similar to this, which they won't. Some dropdowns can't be handled this way.
- karthick78 years agoContributor
Colin_McCraei guess that he is clicking combobox and validating dropdown list of combobox and it will popup for 21 times,i just given script for validation.two lines(User said) never popup the dropdown...its never happen anymore