Hi,
I made a flow in power automate desktop that opens a website.
On this page there is a link with an eye icon. I made a loop that clicks on the eye icon in the table, collects data and returns to the previous page. I would like this action to be performed for all records in the table.
problem description:
The eye has the following selector:
a[Id="searchResultForm:orderSRT:0:j_idt242:0:viewSelectedRowItem"] > em
the next ones have:
a[Id="searchResultForm:orderSRT:1:j_idt242:0:viewSelectedRowItem"] > em
a[Id="searchResultForm:orderSRT:2:j_idt242:0:viewSelectedRowItem"] > em
I wanted to make a dynamic variable, because as you can see, the selectors only differ in number. I used LoopIndex for this, but the flow stops.
a[Id="searchResultForm:orderSRT:%LoopIndex%:j_idt242:0:viewSelectedRowItem"] > em
How does the flow stop? Does it give you an error?
Try to toggle the Text editor ON and save the UI Selector after you have toggled the Text editor on.
There is a long lasting bug on PAD that makes the variables not work on UI element selectors if the Text editor is not on.
Method 2
Wrap the text inside string syntax: %'here start of the text'%%LoopIndex%%'here end of the text'%
So in your case if the id looks like this: searchResultForm:orderSRT:%LoopIndex%:j_idt242:0:viewSelectedRowItem
Then change it to %'searchResultForm:orderSRT:'%%LoopIndex%%':j_idt242:0:viewSelectedRowItem'%
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.