Forum Discussion
AlexKaras
14 years agoCommunity Hero
Hi Lane,
Another possible approach (depending on the tested control and what you need to do) might be that after the target control is found, the script will not click on it, but just set an input focus to it (obj.SetFocus) and then try to perform an action without using the mouse. E.g. this may be something like obj.SetText = 'some new text' to change the text of the control or obj.Keys('![F10]') to open the context menu. Depending on the control, there is a chance that the latter action will bring the control into view automatically, without any actions from your side.
P.S. The above approach is similar to the 'blind input' method when you, for example, press Tab key several times to move the focus to the needed (even not visible on the screen) control and then start typing (or sending command shortcuts like Ctrl-C/Ctrl-V) without seen the control on the screen.
Another possible approach (depending on the tested control and what you need to do) might be that after the target control is found, the script will not click on it, but just set an input focus to it (obj.SetFocus) and then try to perform an action without using the mouse. E.g. this may be something like obj.SetText = 'some new text' to change the text of the control or obj.Keys('![F10]') to open the context menu. Depending on the control, there is a chance that the latter action will bring the control into view automatically, without any actions from your side.
P.S. The above approach is similar to the 'blind input' method when you, for example, press Tab key several times to move the focus to the needed (even not visible on the screen) control and then start typing (or sending command shortcuts like Ctrl-C/Ctrl-V) without seen the control on the screen.