Hello,
I have a variable “A” that I grab it from a json file and I need to look at a list of options on a website to match my variable “A” to one of the options on the website and click on it.
For example. Variable A = movie
Website options are:
Movie
Concert
Camping
None
How can I match my variable (movie) to the first option (movie) and select it? Any ideas how to achieve this?
Fine we can use an activity called Click text activity
—Where we can mention the string we want to click and in that input field enter the variable1.ToString and make a selection for the element where we need to click that text
—So that it will click on the word that we passed and if that is found in the selected region as a element
—make sure that the wait for ready property in the property panel of click text activity is selected as COMPLETE
What is your Studio version? This project was done with latest Stable Community Edition 2019.7.0. Unfortunately, previous versions will not open the file.
(but this is also why I included a screenshot )
Do I need to use the open browser activity? I.e. this is just one step of my automation. Previous steps will take me to the website window where I need to make a selection
Why are you using the type into activity if I need to select a option with a radio button?
No need to use it. I have only explained the principle here with this simple example. You will want to use a click activity or any other, as long as you specify your target as a dynamic selector in the way explained above
Please hover over the blue exclamation mark to see the error message.
I cannot see if you placed it in the For Each loop, but if yes, then the Type of the loop is Object by default.
You can either change the type of the For Each loop to String in it’s properties or add .ToString to the item, like so item.ToString