vex
14 years agoContributor
Help with ClickItem (New issue in 8.70?)
I've used a lot of drop downs with TestComplete and don't recall there being a bug with this.
We have a web application with a dropdown list with 31 items in it. When I click on this drop down, only 1-20 appear on screen (you have to scroll for 21-31).
However, if I perform a ClickItem on item 21-31, it won't work. I remember this used to work in previous TestComplete versions I'm almost positive.
In the log, it says "The combo box item 21 was selected.", but it wasn't and the visualizer screenshot shows it clearly isn't selected.
Is there a way to work around this?
We have a web application with a dropdown list with 31 items in it. When I click on this drop down, only 1-20 appear on screen (you have to scroll for 21-31).
However, if I perform a ClickItem on item 21-31, it won't work. I remember this used to work in previous TestComplete versions I'm almost positive.
In the log, it says "The combo box item 21 was selected.", but it wasn't and the visualizer screenshot shows it clearly isn't selected.
Is there a way to work around this?
Set listFreq = Aliases.WebBrowser.pageSettings.panelContainer.panelSettingsTabtxt.table.cell2.selectFrequency
Set listDay = Aliases.WebBrowser.pageSettings.panelContainer.panelSettingsTabtxt.selectBackupProfileDay
If v2 = "monthly" Then
Call listFreq.ClickItem("Monthly") ' works
Call listDay.ClickItem(v4) ' only works if v4 is between "1" and "20"
End If