Welcome to the Ranorex Support Portal

Access screenshots of UI elements

You can also access screenshots of UI elements with code modules. This is useful for image-based automation, where UI items are identified by image comparison.

The following screenshot shows the necessary code to address a screenshot of a repository item:

  1. Calls the repository according to the repository’s hierarchy, beginning with DemoApplication in this case.

  2. Calls the Info object of the repository item (this is necessary because only this class works with the following method).

  3. Calls the Get method to retrieve the screenshot.

USERS LOVE US

SUBSCRIBE TO OUR NEWSLETTER

Get the latest test automation information right in your mailbox.

FOLLOW US

© 2024 Ranorex GmbH. All Rights Reserved