I need to fetch data from a web page, I am using Get Ancestor activity for it. I need to call it several times in a process, so I need to pass a selector dynamically which is fine however I am looking to make it generic, so it can be utilized later on.
Is it somehow possible to pass a selector like this or any workaround?
I know how to pass the variable, however, I am looking to pass the whole
I agree and I have done it in my code as well however I want to make this generic and need to pass the whole “webctrl” thing as a variable. Is it possible in 1st case?
HI,
You can create a string variable and assign the complete selector value to the variable without any new line.
Pass the assigned variable directly without any braces or quotations.
The result will be a string, but this will allow you to have the individual components as generic values; which will then be converted as strings within the code.
Once all ready, assign strWebSelector into your activity’s selector area.