Issues with dropdowns and ClickItem() not working if the dropdown opens in the up direction
We have been using TestComplete since version 14.93, and all versions of TestComplete, up to and including the latest versions (15.50 and 15.51) have had this same issue:
We are doing Web testing and record our tests with Chrome. If a test is recorded and there is a dropdown list and ClickItem() is used to access an item on the dropdown list, and the test is played back on the same machine that recorded the test, everything works fine. But if a user has a different screen resolution or browser zoom level than the person who recorded the test, we can wind up with a situation where the dropdown opens differently for those two users. Examples:
The dropdown for User 2 opens in the upward direction because it is too close to the bottom of the screen for the dropdown list to display in its entirety in the downward direction. This can be impacted even by the position on the page where the user has scrolled to, even if the resolution and browser zoom levels are identical.
What we've found is that if the dropdown opens in one direction (usually but not always the down direction) when a test is recorded, when the test is played back and the dropdown list opens in the other direction (usually up, in this case), the test will open the dropdown list and hang there. The ClickItem() step will then time out and fail with an error message that says, "The drop-down box cannot be opened."
When this happens, our workaround is to change the test from using the ClickItem() method to using the Keys method with the full text of the item in the dropdown list to be selected. This circumvents what appears to be a bug in ClickItem() that has been there for a long time, but it is a pain for us to have to go back and change this every time we run into an instance of this issue.
Has anyone else experienced something similar to this?
Edit: Because of the Chrome 113 issue, we've started playing our tests back in Edge, and we're noticing that ClickItem() steps that work in Chrome do not work in Edge, even if the dropdown list opens in the same direction as it does in Chrome. The ClickItem() steps fail with the same error message noted above: "The drop-down box cannot be opened." Resorting to using the Keys method still works as a workaround in Edge. This seems to be happening for every drop-down box when the tests are run in Edge.