I get these ones and they dont look so promising to me. The most promising was “aaname” and in this case its becoming equal to text fields content.
like in the picture it says bunch of tests because that was written in the description field.
Now the question is:
I need the content in the description field to look if there are any matches with some keywords I have. Can I do this in the Selectors “aaname” element
If the normal selector is not able to detect the required UI element, you can use “Indicate anchor” from the UiExplorer or use anchor base activity.
Use Anchor base activity, by paring with Find element activity and Get full-text activity.
If you wish to use your specific keywords then instead of making selector complex with the multiple keyword variables, you can create an Array String with all the required keywords in it. Then iterate the array in a loop and use the switch activity to get the exact keyword match. If condition matches then the get text will be activated. To make the selector more dynamic place the loop iterable variable in the selector. So that Selector will more dynamic and clear to understand.
Example:
<html rest of selector /> <webctrl rest of selector aaname='*{{iterable}}*' innertext='*{{iterable}}*'/>
Added innertext property in the selector to add up more strength to find the required UI element.
Advantage of this procedure is you can add/delete the keywords. No need to change the selector every time.