How to pass Variable into Selectors

Hi, @Palaniyappan @lakshman @vvaidya

I am not able to pass a variable into the Selectors. Kindly suggest some solution for this issue. I tried all ways from the forum.

The Selector is
<aaname=‘Item Receipt: * (Hospital Supplies)’/>

I want to change the dynamic selector for Hospitals Supplies. So the Variable Name is VendorName.ToString

Expected Output:

<aaname=‘Item Receipt: * (’"+VendorName.ToString+"’)’/>

1 Like

Hi, Try this->
“<aaname=‘Item Receipt: * (’”+VendorName.ToString+"’)’/>"

I tried this way also. I am not able to click with this selector. @vishal.kp

Try with a star after also.
“<aaname=‘Item Receipt: * (’”+VendorName.ToString+"*’)’/>"

The 1st Star is for wildcard. It’s changing dynamically in some part. @vishal.kp

Have a look at the below thread @Kalees9486

3 Likes

Hi
Kindly try with what @HareeshMR suggested
It’s one if feature that helps us to create variable in selector itself
Cheers @Kalees9486

2 Likes

Yeah Got Solution .

Thank you. @Palaniyappan @HareeshMR

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.