Selector for element exist

I am trying to use the selector to move page by page in Assignment 2 (Yearly report for dispatcher) but the page is not moving.
Selector

1 Like

I believe the tag attribute changes. I don’t think it is the same for all of those buttons. I removed it when I was doing the assignment and just used the aaname attribute.

where should i click in the page on 1st page or 2nd page or any other.

You need to edit the selector that UiPath automatically generates.

Now I got this selector automatically, So I am editing the selector with aaname= in_TransactionNumber. Is it right.

Selector

As I said above the “tag” attribute is different between them, which I believe is why your selector isn’t working. I would remove that attribute from the selector entirely.

You should probably watch the selector video here to get up to speed.

buddy @ramkrishna2k3
Buddy i would like to suggest one simple thing, when one transaction gets over, to get the next transaction we would surely go for next page, to make that happen we have > symbol to go tot the next page, which will be same in any page the attributes that vary can be replaced with wildcards, but the target element > this symbol is going to be same,so i would suggest instead of searching and clicking each number to navigate why not we can click standard single button > symbol for all time just replacing the dynamic attributes with wildcards…Right simple buddy

To make this happen once you are done getting the data from first page, you are going to migrate to next page right, at that place just use a click button or the activity that you are using now to click that symbol and change the dynamic part with wildcard, So whenever the page changes the symbol exists and you get the transaction data…and here comes one thing. when you reach the last page you wont be able to see the > symbol…so you can get that with element exist first and use a click activity, so that first it will check whether the element exists and then click, if its not there then it has reached the last page and thus transaction data is null and even you can set transaction_item as nothing here and go for processing

This is very easy and would work for sure buddy

Cheers.

1 Like

Hi @ramkrishna2k3

Check below screen shot and i attached workflow for based on your requirement it will help you.

GetTransactionData.xaml (10.3 KB)

1 Like

Thanks for Brief Explanation. I am doing like this
Firstly I am dragging the attach Browser.
Secondly I am indicating the Workitems listed page. (i get a selector
Thirdly I am dragging the Element Exist and indicating with Indicate on Screen (SS attached)
Selector
and getting the selector (SS Attached)Getting%20Selector
4thly : So in this selector I will edit as per need. By doing this also i am not getting a result.

My Question is i am selecting the correct way which is shown in the 1 SS.

1 Like

please help I am stuck here

Buddy don’t select all the numbers as you are dragging now… select only The last > symbol buddy and remaining process same buddy @ramkrishna2k3

Ok…I selected the last symbol and edited the Target. But getting false. :frowning:

Buddy you need to scrowl down the page to the last before checking for element exist buddy @ramkrishna2k3

Now I am facing the below

are you passing any transaction item to queueitem buddy

yes. Just the Changed TransactionNumber to 1

is that working now…can i see the arguments passed

Please check the walk through. It says there that using the element exists in the GetTransactionData workflow you simply check if the next page exists, and if it does, you scrape the elements of that page in the process workflow (that’s where you do the click).

Buddy @ramkrishna2k3, i think you are trying to the add the items to queue with the transaction number…thats not needed buddy , we need to look on each page and get the table data, so once after checking the element is there or not, get the data from that page and iterate to the next page and once you reach the end you can proceed with next process evaluation. buddy @ramkrishna2k3

Cheers