Chromeで表から任意のリンク文字を選択する方法について(StudioX)

Chromeで表にリンク文字列が縦に並んでいて、それをクリック操作でクリックしリンクに飛びたいです
しかし、クリックしたい文字列が、表の何番目に表示されるかは事前にわかりません
効率的にクリックする方法があれば教えていただきたいです

現在は以下の可能方法で実現しています
①繰り返し処理を作成
②繰り返し処理の中で、case文を作成
③case文で繰り返し回数が1のときは、1行目の文字列のテキストを取得
繰り返し回数が2のときは、2行目の文字列のテキストを取得
以降同様
④取得した文字列を変数に入れる
⑤文字列の変数が目的の文字列か条件分岐を使用して確認
⑥thenの場合はクリック操作で1行目の文字列をクリックしリンクへ飛ぶ
(2行目以降は、1行目のクリック位置+オフセットで位置を指定しクリック)
⑦elseの場合は③へ

問題点は
・③でテキスト取得を繰り返し回数分事前に用意する必要があり、繰り返し回数が増えると煩雑になる
(テキスト取得はオフセット位置が使えないと思うので、ベタ書きするしかない)
・While文がないので繰り返し処理を使うことで、回数を事前に決めないといけない
(表に文字列がMAX何個出るかわからないが、ある程度きめうちで実施しないといけない)

やりたいことは最低限実現できているのですが、もう少し良い方法がいないか悩んでいます
何か良い方法をご存知の方がご教授お願いしたいです

使用ツール StudioX 2020.10 (会社の都合でバージョンを変更することはできないです)

Hello @nobu_n!

It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.

First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.

You can check out some of our resources directly, see below:

  1. Always search first. It is the best way to quickly find your answer. Check out the image icon for that.
    Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.

  2. Topic that contains most common solutions with example project files can be found here.

  3. Read our official documentation where you can find a lot of information and instructions about each of our products:

  4. Watch the videos on our official YouTube channel for more visual tutorials.

  5. Meet us and our users on our Community Slack and ask your question there.

Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.

Thank you for helping us build our UiPath Community!

Cheers from your friendly
Forum_Staff

Hi @nobu_n,

Is it possible to create a really large For Each loop that will most likely encompass the While Loop’s number of iterations like this?

Thanks