How can use uipath to get dynamic row number on website

Hi all
I have a question that want to get website’s information, same title on each table maybe have difference row_number

For example
Table A : title = User_ID
<webctrl parentid=‘form’ tableRow=‘14’ tag=‘TH’ />
Table B : title = User_ID
<webctrl parentid=‘form’ tableRow=‘12’ tag=‘TH’ />

If I want to get tableRow number and assign to variables, how to do that

Thanks for everyone’s help

Hi @YH_Hsiang ,

Have you tried using the Get Attribute Activity ?

Hi @supermanPunch
Thanks for your reply
May is my expression not clearly

I want use the key “UserID” to get “tableRow” for search on each table’s information.

Because on each table, same item’s location maybe difference, so using a key to get location(tableRow) is important for me

@YH_Hsiang ,

Could you show us the UI Element’s Seelctor where the User_ID and the tableRow attributes are present together in the same Selector. Use UiExplorer for indication, and provide the Screenshot of the UiExplorer here, so that we can help you better on what needs to be done.

Hi @supermanPunch
Thanks for your reply
Unfortunately, I can’t provide my question’s pic at here, because that is company internal website
Only can use example I posted

@YH_Hsiang ,

When Indicated on UI element using UiExplorer, do you get both the User_ID and tableRow in one/same selector ?

If so, we could use it to assign the User_ID attribute with a variable which would have the value that is required to be searched and then retrieve the rowNumber from that selector using Get Attribute Activity.

Or a Similar approach could be done by either specifying a Anchor or Looping through the elements using Find Children activity and retrieving the position which should also be the rowNumber value.

Hello @YH_Hsiang

Welcome to UiPath forum …!

You need to make the selector to dynamic to achieve this. Please share the selector from Uiexplorer for any 2 rows here and explain which value you need to Get.

Thanks

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.