Repeated actions in a web browser

Hello,
I checked previous forum posts, but couldn’t find a solution that worked for me, so I’m posting here.

I don’t know how to recognize a specific icon on a website and repeat an action.
The specific icon is circled in red in the image below.

The specific steps I have in mind are as follows:
① Filter the results to display the state shown in the attached image in the browser.
② Click the specific icon in the top row → the individual record page is displayed.
③ Perform another action on the individual page → save → return to the page in step ①.
④ Since the page in step ① shows the filtered results, the record processed in step ② has been removed from the list. Click the specific icon in the top row (then repeat steps ③ and ④ until the specific icon is no longer displayed).

こんにちは

基本的にはループ(繰り返し(前判定)アクティビティ等)を作っておいて、ループの最初に1行目に特定マークの有無をチェック→なければループを抜ける処理(Breakアクティビティ)を行えば良いように思えます。

@ukenken

Did you tried with For Each UiElement activity, if not please try with that

Dear Yoichi,

Thank you for your comment :man_bowing:

I tried putting it together like this, but after pausing for a while on the screen referred to above as ①, a log appeared saying that execution had finished, and no processing was performed.


First of all, is using For Each UI Element the right approach?

I don’t think the Repeat (Each UI Element) activity is suitable for this case.
Since you only need to check the first row each time, you could use, for example, a Repeat (Pre-Condition) activity for the loop, and handle the check for exiting the loop with a conditional branch inside it.

Dear Yoichi,

Thank you for letting me know that the UI Element activities aren’t suitable.
I’m sorry to ask so many questions, but how should I specify in the precondition field whether an arbitrary mark is present in the first row of a table in a web browser?

You don’t enter it there.
I think you can simply set the condition to true, or set a maximum number of iterations to prevent an infinite loop.
Inside the loop, use an activity such as Check App State, and if the target isn’t present, use the Break activity to exit the loop.

Dear Yoichi,

Thank you.
Do you happen to know what the activity immediately before While is called in the Japanese version?
When I ran it without the Do part, as shown below, execution finished without performing any actions.

Do is unrelated to the processing.
Add a log message to each branch for when the target appears and when it does not, then check which one it goes through. (I suspect it’s going down the branch where it doesn’t appear. → If so, there may be an issue with the element selector.)

Dear Yoichi,

We found that the flow wasn’t progressing as expected because the click instruction was positioned incorrectly.
The fix worked successfully. Thank you very much :man_bowing: