hi everyone, how to click the item one by one on this website. I only need lines with a blue arrow in front and rev0 at the end.
Hi @Hong_Ray
Welcome to UiPath,
Use Get Attribute item.Get(“innertext”).ToLower.EndsWith(“rev0”)
For Each item in FindChildrenResult
If item.Get(“innertext”).EndsWith(“rev0”)
Click item
End If
End For
thx,but also need to confirm the blue arrow
Why you need to confirm the blue arrow just use * end with rev0.
IF you still want to check then, inside the For Each loop use Element Exists/ Find Element with a selector for the blue arrow icon scoped to the current item. You can set the current item as the container by passing it to the Element Exists activity so the search happens only within that item. If Element Exists returns true, it means the blue arrow is present.
Make sure the fine tune the selector…
Hi @Hong_Ray
Can there be lines where rev0 is there in the end but no blue arrow and vice versa? if yes, follow below approach.
Also, if blue arrow is not there, then what’s there? Is it not visible at all? or Its disabled? Or in some other color?
Approach:
First explore the selector for arrow icon. there may be properties like below in left bottom panel of uiexplorer. you will have to explore selector where blue arrow is there and where no blue arrow is present to find what property is tagged to this functionality.
aria-disabled or aria-disabled or some property to do with visibility of that blue arrow icon.
One figured, try like below.
for each element,
get attribute activity with “property that you found for blue arrow visibility/enabled/disabled/color”
then check the output value of get attribute, if visible/enabled/disabled etc
if yes, then check like @prashant1603765 mentioned to see if it ends with “rev 0” and click element.
Hope this helps.
Regards
Sonali
