Get a number from Web with multiple selectors


I am new to uipath. I created a number in a text box and i want it in to excel.
i did it but the issue is when i create the second is taking the first one not the new one.
this selectors is changing for each row and want the latest one.
the selector is like ctl00_ContentPlaceHolder1_gvTo_ctl07_txt
please help me out.


can you please rephrase your question, english is not my native language. sorry

Hi @Mudita123,

You can try this ctl00_ContentPlaceHolder1_gvTo_ctl07_txt in place of ct107 put ‘*’. Now your selector will be ctl00_ContentPlaceHolder1_gvTo_*_txt.

Use Get Attribute property and store the value in variable. Write in Excel

but in this case it will take any value
not the newest one

Send me the screenshot of your application and provide me some more information like from where you have fetched the Data and entered into the text box, is the position of text box is constant ?

Since the selector changes for each of the row, you can try using a counter variable which you can pass in your selector and then increment it based on next selector(use Uiexplorer to get the selector and see what is changing and you can use this logic) try out this way and it works,
Let us know if this helps,

Pavan H

what your are saying is correct
but it cannot work with my case because it was not fixed that number will create on which row some times it was on first or some times it was on 3rd or 5th.

you can have a if condition in that case if in first row then you can go with first row, if not then 3rd or 5th as per the requirement.

Let us know if you can use this logic.

Pavan H