Click element variable in a Selector


I’m trying to pass a string variable that selects from a certain list of links on a website.

I’ve essentially got it all figured out except for the crucial part: Actually passing that string variable in the Selector Editor in such a way that the container is browsed through for the value inputted in the variable and clicked on.

Dealing with Chrome as a browser, if that info is needed.

If you go to the Activity and look at the Selector in Properties, click inside that textbox. You should notice that the entire Selector is one long string surrounded by quotations. You can now edit that string with your variable by using concatenation.

For example,
“< htmltitle='”+variable+“’ / >”

All you gotta do is find the part of the Selector that you want to use a variable with.

Hope this helps a little. Thanks.

1 Like