Support Portal

for ProcessRobot and WinAutomation

Start a new topic
Answered

List View in desktop application

Hi all.

I am a newbie of winautomation.
The my question is the follow.


I have a desktop application with a dynamic ListView of element, for example a list of states:

Italy
Spain
England

How do I find the list item that interests me and click on it?
The elements are not always the same, so they can change position.


Best regards, 

Marco





Best Answer

Hi,


When you add a new control in your process, you can inspect the extracted selector of that element by right clicking it within the Controls Repository and selecting the "Manage Selectors" (or simply double click).

Then, click on "Edit" and in the visual selector builder window, you will be able to see the path that the action will follow in order to use that element. You can then modify the selector by enabling (or disabling) certain attributes.

In most cases, you can use the "name" attribute to identify an element by its name. 


For example, in Windows' Control Panel>Programs>Programs and Features, there is a list of programs installed on the machine. Adding a control to click on one of the programs, for example, "Microsoft Office Professional Plus 2016", will create a selector ending with "....[name="Microsoft Office Professional Plus 2016"]". By removing any mention of that name from that selector and changing it to a different program, you could click on that instead.


Hi Swati,


Since you want to navigate to a control which appears after pressing two more, you 'll have to use the 'add control' sequence to add all of them in you repository (buttons file, open, browse). 

after that of course you 'll have to use three actions 'click element in window' to first click file then open and lastly Browse

I am using Nuance Power Pdf software and I want to click on browse to open any Pdf file  (File>Open>Browse) where browse is a list item then how I can select the element of browse.

Answer

Hi,


When you add a new control in your process, you can inspect the extracted selector of that element by right clicking it within the Controls Repository and selecting the "Manage Selectors" (or simply double click).

Then, click on "Edit" and in the visual selector builder window, you will be able to see the path that the action will follow in order to use that element. You can then modify the selector by enabling (or disabling) certain attributes.

In most cases, you can use the "name" attribute to identify an element by its name. 


For example, in Windows' Control Panel>Programs>Programs and Features, there is a list of programs installed on the machine. Adding a control to click on one of the programs, for example, "Microsoft Office Professional Plus 2016", will create a selector ending with "....[name="Microsoft Office Professional Plus 2016"]". By removing any mention of that name from that selector and changing it to a different program, you could click on that instead.

Login or Signup to post a comment