How to use dynamic selector in a list

activities
click

#1

I have a list of items like in the attached image. I want to click on an item of type W15.

My idea is to datascrap the list and click the item of W15 using dynamic selector.

but the not possible to give dynamic values for selectors since idx value is same for all items in the list (refer below selector)

<html title='ACME System 1 - Work Items' />
<webctrl css-selector='body&gt;div&gt;div&gt;div&gt;table&gt;tbody&gt;tr&gt;td&gt;a&gt;button'   idx='1' tableRow='4' tag='BUTTON' />

please advice me on this.


How to extract table data from a webpage while IDX attribute keeps changing
#2

Hello there,
There is no need of using click activity and the selector.

  • After data scraping you need to extract W15 workItem of the status open which can be done as below
  • DataTable.Select(“Type=‘WI5’ AND Status='Open”’)
  • Then loop through the data row to get each workItem
  • To click or open the WI5 You just need to use Navigate To activity and pass the URL as
  • system1url+“workitem”

Please refer the walk through document for the same.
Calculate_Client_Security_Hash_Walkthrough.pdf (944.8 KB)

Cheers :slight_smile:


#4

@ddpadil Hello,
Where i can find more walkthrough documents like this
thanks