Element Exists not working in Assignment 3 of Academy 2

activities
studio
web

#1

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.


No transaction data, level 3, assignment 2
#2

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


#3

Greattttt… It worked… Thanks a lot


#4

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


#5

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


#6

@arivu96,

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

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


#7

use UiExplorer to get exact selector


#8

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


#9

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’


#10

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.


#11

@arivu96 @Sachin_Tayade @fudi5

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


#13

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+"’’


#14

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


#15

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


#16

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


#17

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.


#18

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