Element Exists not working in Assignment 3 of Academy 2

Hello Team

I am trying to make selector of Element exists activity , a variable. Actually i need to open different pages of Work items on the basis of a number. as indicated below

I am using the selector as in the following screenshot for this. Adding a variable ( in_TransationNumber ) in it. But the element exist activity is returning False everytime.

Can somebody suggest the right way as i am not getting the correct output from Element Exists activity on the basis of this selector.

2 Likes

Hi @harjot_gaba,

In Element Exists activity Properties assign the selector as a string
Element%20Exists

then it will work.

Please refer this xaml to better understand.
ElementExists.xaml (7.3 KB)

Regards,
Arivu

Greattttt… It worked… Thanks a lot

Hi @harjot_gaba and @arivu96

Please help,I’ve just started assignment 2. GetTransactionData.xaml (Element Exist Activity) is fine but my problem is the process.xaml (Click Activity), when i run the workflow from main.xaml it doesn’t click the element but just closes and navigates to the dashboard. I don’t know what I’m missing because my selectors look correct.

below is GetTransactionData.xaml flow and Process.xaml flow:

Please see if you can assist

Regards
siahVudu

1 Like

Hi @siahVudu,

In Click Activity you given wrong selector.

"<webctrl aaname='"+in_TransactionNumber.ToString+"' tab='LI' />

in tab LI you added double quotes remove that put single quotes.

Regards,
Arivu

@arivu96,

Thanks for quick reply. corrected my selector but still experiencing the same problem.

"<webctrl tag='LI' aaname='"+in_TransactionNumber.Tostring+"' />"

use UiExplorer to get exact selector

I did just like I did with Element Exist and indicated the same element (2) but still not working

1 Like

What is the difference in below two selectors ? The first one is how I get it to work in UI explorer but it wont work in actual workflow. The second one is what was suggested here which works in workflow. Not sure what am I missing. Ideally I expect both of them to work

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

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

Maybe it is not soulution but was for me. I removed this action “Element exist” and work fine for me… You just checking if the element exist. I think that in this case is not necceserly.

@arivu96 @Sachin_Tayade @fudi5

Thank you guys but I manged to make it work, I’m busy with Performer now

1 Like

Hi ,

The way I see it, on the first selector you used two single quotation marks for aaname value instead of one.

NOTE THE RED HIGHLIGHTS

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

Hello,

I am facing the exact same issue. I am using below selector.

image

Also tried another selectors with tag set to ‘A’ and changing positions of tags or removing URL attribute, doesn’t work.

It seems the attribute aaname is not fetching the value of my string variable. As soon as I replace the variable with actual number, it works.

Any suggestions? I am stuck here, tried a lot of options, would appreciate help.

Thanks, Nitish

1 Like

When you are passing a variable in a selector you should not open the selector editor, don’t open the editor and paste this

"<webctrl aaname='"+in_TransactionNumber.ToString+"' tag='LI' />"

in selector field, after writing the selector in such a way it would look like

image

1 Like

Hi Prankur, thanks a lot.
Works well and I understood Selector Parameterization can be done only by passing the selector as String.

1 Like

Hello,

Please suggest. I am facing the same issue and below is my selector. It does not recognize the value and moves into the False loop. TIA.

1 Like

Can you please verify the you are able to get value of In_TransactionNumber. Also please cross check the properties like this -

hi
Im getting same problem.
my tag as below

“”

image
my transaction number is = 1

1 Like

it works fine thanks

hey , can you help me with this I am getting same problem at selector

1 Like