How to make a dynamic selector (expression construct of selectors with variables)

#Dynamic #selector #variable

Ex.:
The user will choose the browser in which his robot will run, this will imply in the selectors during the script. This example shows how to construct an expression for this selector and assign it to a variable that will be used

1- Create options in a dialog box

2- In switch activities, create cases with this variable. For each case set a assign with expression (ex.:" < html app=’" + browser.ToString() + “’ title=‘EUR USD Dados Históricos - Investing.com’ / >” )

3- Now, you can use this variable on properties>target