
Go to System Preferences -> Security & Privacy and check Robocorp Lab, Code, VS Code or Terminal (depending on where you run the robot from) in the Accessibility and Screen Recording sections. macOS will ask for permissions the first time you run the robot. (Tested on version 12.4.) The layout and the behavior of the Maps app vary between macOS releases. Note: This robot requires macOS Monterey. Falls back on the web version of Google Maps if Maps fails to find directions.Tries to find the directions using the Maps desktop app on macOS (Monterey), using image templates and keyboard shortcuts.Interacts with a web browser to select two random locations on Earth (from ).This example robot demonstrates the use of image templates and keyboard shortcuts to find travel directions between two random locations on Earth. Robocorp provides cross-platform desktop automation support with the RPA.Desktop library. Cross-platform desktop automation library The robot will compare the image to what is currently displayed on the screen and find its target. The images are saved together with your automation code.

In image template-based desktop automation, you provide the robot with screenshots of the parts of the interface that it needs to interact with, like a button or input field.
