lodecesa
2 years agoContributor
ClickItem select another Option
Hi all,
in a script test I'm trying to select a Select Option with the ClickItem function but TestComplete select the Option that is ten positions above the desired one.
The script portion is:
selectElement.scrollIntoView();
selectElement.clickItem(elementName);
The HTML code is
<select _ngcontent-yqp-c115="" class="form-select form-select-sm select-dark ng-pristine ng-valid ng-touched" id="id-3">
...
<option _ngcontent-yqp-c115="" id="idOpt-3-24" value="16: 24">
<span _ngcontent-yqp-c115="" class="select-option-dark">
Bahamas
</span>
</option>
...
<option _ngcontent-yqp-c115="" id="idOpt-3-34" value="26: 34">
<span _ngcontent-yqp-c115="" class="select-option-dark">
Bolivia
</span>
</option>
...
</select>
During the test execution the mouse pointer correctly select the Option desired but when the panel of the select is closed the item selected result the wrong item.
I do this two times in a script on two long Select and I have the same behaviour.
Why does this happen?
Thanks
Lorenzo
- What browser are you using?
Chrome 115 is out and it may be causing ClickItem issues again