I am working on automation of web browser in which i have to right click on file name dynamically, i tried to edit selector by passing variable inside it but its not working and click each time on the same file name which i had select first time in click activity.
Please find the below screenshot and edited selector.
@pravin_calvin Provided solution is not working in my case. My task is to upload word doc in link(mentioned in earlier screenshot) and then click on uploaded doc. Uploaded file name can be different each time and i have to click on that same uploaded document.
@pravin_calvin Let me explain you the exact scenario-
I have a url link on which i am uploading word doc that is saved on desktop, the path where i am uploading the same file contains different word doc now i have to right click on current uploaded document to proceed further.
In that case, please go to uiexplorer, indicate element and show us the screenshot of uiexplorer.
Few things that can be tried:
Check for different rows the selector and identify what attribute values are remaining as static and what are changing?
This will help identify the relations between different selectors of different rows.
Secondly, there would be some attribute like aaname or inner-text that would contain file name. Locating that can help select the right file when passed file name as variable.
Also please show us the screenshot of your current selector.