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.


#12

I have the same problem, can anyone share the correct get transaction data workflow?


#13

Can you attach your workflow? Where you got stuck


#14

I am getting a false value in the element exist. thank you

GetTransactionData.xaml (13.9 KB)


#15

Run it now -

GetTransactionData (1).xaml (13.7 KB)

When you use dynamic selector do not open selector window and directly paste selector in text box it should look like this -

image


#16

Thanks a lot! It works but now the on element appear doesn’t work in the process workflow. I guess the same thing applies there.


#17

Yes same thing for selector and one more thing Set Repeat Forever property to false in On Element Appear


#18

Can you please help with the selector in the process workflow as well?

Process.xaml (29.9 KB)


#19

It looks okay what error are you facing. Please share the exception


#20

System exception. Retry: 0. The target Element was not specified for this activity. You should set its Target property or use this activity inside of a scope activity (Attach Browser, Open Browser, Open Application, Attach Window, Get Active Window, Element Scope activities). at Source: Click ‘SPAN’