Assignment 3.2: Dispatcher - Element Exists selector not working


#1

Hi,

My element exists selector is not working. I use the following selector:
image

When I do a write line of the in_TransactionNumber it is working, but when I do a write line of the ElementExists output, it states “False”.

Rest of my workflow
image


#2

Try this!

Reards
Niket Ghai


#3

Thanks, but it also does not work unfortunately.
Can you maybe have a look at my workflow to see where it goes wrong:
Main.xaml (49.4 KB)


#4

You need to send your GetTransactionData file.
Try re-indicating the next page…


#5

Ah sorry, of course
GetTransactionData.xaml (13.3 KB)

Regarding indicating to the next page, as I also need the first pages data, and the selector is also used there in the scraping of the table, how do I deal with that. Do you suggest an If statement there? I have not come up with a working one so far.

Thanks!


#6

Hey! As far as GetTransactionData is concerned…just select the first page and indicate the next page i.e the 2nd page, somewhat like this:
image

I’ve already attached the selector I’ve used.

Now in the process.xaml use this selector for clicking the next page:

"<html title='ACME System 1 - Work Items'/><webctrl tag='LI' aaname='"+in_TransactionNumber.ToString+"' />"

And simply perform the data scraping!
It will first click on the first page! And will fetch the data of first page

:slight_smile:
Tell me if that was helpful.


#7

Thanks for the suggestions, but it is still not working. The selector I am using is:
<webctrl aaname='"+in_TransactionNumber.ToString+"' tag='LI' />
This should be the right one, but it is not working.

For the process.xaml selector: I am using the in_TransactionItem one, which is linked to the in_TransactionNumber. This should not provide any problems right?


#8

No that won’t create any problem, make sure it’s default values is 1


#9

Hi @TerraV1

I have the same problem as you do in terms of getting “False” for the first part in the “Get Transaction Data”. I am using the same selector as you do, but for some reason, it is not able to find it.

Did you manage to solve the issue?


#10

Your selector is correct please verify the in_TransactionNumber.ToString in GetTransactionData.xaml


#11

The solution was to type the selector in Notepad, create a new element exists activity, and copy the selector in there. I don’t know why it works like this.