How to edit a selector with variable name

Hii,

I am trying to automate a case where i am downloading an editable pdf from web and saving it with current time stamp. i am storing the name of filename in ‘fileName’ variable. Now the next step i want to perform is opening that pdf. PFA SS


So here I have many files saved but i want to open the one that i have downloaded recently.
I have used findElement activity for searching the file and the output element of findelement have passed to click activity as an input.
So this is how selector of find element looks like

I want to replace text tag with $fileName$ variable. how should i do that?

please search forum you can read the directory in the background and take the desired file name with pattern and then after can use start process activity to open the pdf.

Regards…!!
Aksh