I am working on web page and it is not in tabular form. Under summary tab there can be n no. of entries
I have to click on download icon adjacent to correct key word. But there can be number of lines and multiple attachments.
download button …line 1…correct key word
download button …line 2…incorrect key word
download button …line 3…incorrect key word
download button …line 4…incorrect key word
I am using get attribute and able to extract text from correct word. then i am using if condition and
using getattributeoutput.contains that textof correct word, then it will be processed by bot.
Otherwise it will skip and it will not download. After that it will move to next entry to get that correct word.
There can be 5-6 such line entries.
Identify the element in ui explorer and check in the center menu to see if any of the lines contain the aaname or inner text fields populated with the target line name that you are searching for…
Else… try using anchor base activity with anchor as the require line item and use idx property to increment to next identical anchor with same name…
The same can be acheive by using for each ui element as well
Please Check in UiExplorer if the attachments/icon you want to click on have a common parent element.
If so you can use find children and loop through the collection to perform a click activity on the same