I have a series of scripts that are written to run on different operating systems and different language. Now, I have having problems on only one system with the tab_select_item function.
When using the tab_select_item function (immediately following a set_window statement), I receive an error message that the Object is not currently displayed. I tried adding a win_activate before the set_window, and I tried adding some wait statements. None of these helped the issue.
I have found that if I add spin functions, and spin the tab control bar, so that the tab I am trying to select is fully visible. Then the script is able to select the tab. However, if it is even partially obscured, it will not be found.
My problem is this: it would be very cumbersome to identify exactly how many times the spin tool must be used depending on which tab is being selected. It is a large tab toolbar, and not all tabs can be visible at the same time. On the other systems (one the same OS and another of the same language), the tabs can be selected with the tab_select_item command, even when not visible.
Are there any ideas as to why this is causing a problem now? It is a new issue, and seemed to work in the past... Any ideas as to how to make it work other than the spin commands?
By the way, I am calling the tab_select_item as follows: