Handling such applications may require a deeper understanding of the application and its components to dynamically traverse the object tree and find a required element by its properties. This article provides and demonstrates a set of utility functions that can be used to automate these applications.
Consider a sample application with a ListBox control as shown below:
Suppose we have Learned just a single item (listBoxItem4). And now our goal is to click any other items in the same list box.
First, let’s look at the locator part of the learned item:
It looks as shown below:
This path matches the tree structure that we may see from the UI Automation Spy:
So if we need to click a specific item while having object pointing to listBoxItem4 then we need to do the following:
The attached Rapise sample contains a number of functions and a working sample demonstrating how it can be achieved.
In addition, here is the list of utility functions (you may find them in the attached sample):
Selected files will be attached to any email sent on saving ticket.
Select files to upload
Or drag and drop files here
Save to upload the selected file(s)