How to use images with PAD
As we learned in the previous section, PAD can identify UI elements by using specific selectors. But there are situations where we need other mechanisms to perform certain actions, such as moving the mouse to a certain place and performing an action. This is where images come into play. We have the following actions that use images as input:
- if image checks whether an image is available on the screen
- Wait for image waits for an image to appear or disappear on the screen
- Move mouse to image moves the mouse to an image on the screen
Combined with Send mouse click, it is even possible to perform actions without knowing the UI element. This technique is also useful if we need to automate on virtual or remote desktops where there is no agent available, such as Linux or Unix. Any program on any system can be executed and controlled remotely via this technique. So, for example, if there is a business application that runs on a Linux system...