How to pass a Variable to selector

I am finding trouble in passing a variable in a selector in the web automation
my case scenario is like I am to search a field in the website using the attribute and the attribute value is dynamic in nature

Now I have the dynamic Value of attribute in an argument and how to pass it in the selector so that I could find out the element

Get me any hints or solution in this

Thank you


As of now you will not be able to pass variable in selector.

Amit Anand