ClickItem select another Option
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Labels:
-
Script Tests
-
Test Run
-
Web Testing
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hopefully someone has reported this to SmartBear support provide a fix in the next version of TestComplete.
I think we can assume this all works correctly in Chrome 114 but Chrome 115 have again caused ClickItem issues again.
Seems to be a cycle here when Chrome (Chromium comes out)
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you open up a ticket with support so this can be addressed in the next update of TestComplete ?

- « Previous
-
- 1
- 2
- Next »
- « Previous
-
- 1
- 2
- Next »