Robotic Process Automation

 View Only
  • 1.  Get the "ListViewItem" number from a "List Box"

    Posted 20 days ago
    Hello everyone!

    I would like to take the number of the ListView Items from a ListBox (class name SysListView32). Some Windows applications has a "table" like the picture below (msinfo32.exe). I have used the recorder in order to take the Xpath from the ListBox. I still can't find any commands in order to get the number of rows from this screen element (List box '202'), in this case I have 40 ListView Items:

    I tried with Get Table and Get Table Informations commands receiving the error 'Control is not a type Itable'.



  • 2.  RE: Get the "ListViewItem" number from a "List Box"

    Posted 13 days ago
    The getOptions command returns a datatable with the data you need, then you just count the rows of the table.

    Joba Diniz
    Product Manager

  • 3.  RE: Get the "ListViewItem" number from a "List Box"

    Posted 11 days ago

    Thanks for your quick reply. I tried the "GetOptions" command many times using different selectors but I get always the same error "Could not find Test Control for Control Type list item and FrameWorkId:Win32 .

    Using the Get Value command I can get the value from a ListView Item (the first row of the list for example, the OS name: Microsoft Windows 10 Enterprise).
    (Xpath used for the selector is: /root/list[1]/listitem[41]/text[1] )

    From the following picture you can see the Get Options command result. I tried to get the data table from the whole list box with no success:
    (Xpath used for the selector is: /root/list[1] )

      What would you do?



  • 4.  RE: Get the "ListViewItem" number from a "List Box"

    Posted 3 days ago
    Ciao Enrico!

    Have you tried to use different selectors to identify the table? I dunno if it makes any difference, but worth of trying perhaps?

    Jukka Juselius
    Senior Solution Architect - IBM EMEA
    IBM RPA Program Lead for EMEA
    IBM Technology - Business Automation