# 動的に変化するチェックボックスのチェック

**URL:** <https://forum.uipath.com/t/topic/364218>\
**Category:** フォーラム\
**Tags:** studio\
**Created:** [November 24, 2021, 8:06am UTC](https://forum.uipath.com/t/topic/364218 "2021-11-24T08:06:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![zuka](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/zuka/32/108479_2.png) [@zuka](https://forum.uipath.com/u/zuka)\
**Post date:** [November 24, 2021, 8:06am UTC](https://forum.uipath.com/t/topic/364218/1 "2021-11-24T08:06:22Z")

</div>

お世話になっております。  
お忙しいところ恐縮ですが、uipathについてご教示ください。

期間を指定し、検索ボタンを押下すると、  
その期間で検索された結果がチェックボックスを含んだ状態で表示される画面があります。

その表示されたチェックボックスをすべてチェックを入れるRPAを作成したいのですが、  
知識不足により開発ができません。  
データスクレイピングも試しましたが取得した部分が「No」以外空文字となっており、取得できませんでした。（レコード数は取得できます）  
ご教示いただけないでしょうか。

▼参考（表の件数は動的に変化します）

 ![image](https://global.discourse-cdn.com/uipath/original/4X/2/a/8/2a80c17d9d48042bd92d0d01989da80eaf485f45.png)

---

<div class="post-metadata">

**Author:** ![Yoichi](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/yoichi/32/523754_2.png) [@Yoichi](https://forum.uipath.com/u/Yoichi)\
**Post date:** [November 24, 2021, 9:01am UTC](https://forum.uipath.com/t/topic/364218/2 "2021-11-24T09:01:00Z")

</div>

こんにちは

英語のPOSTで恐縮ですが以下類似かと思いますので、お試しいただければと思います。

> [@Unable to click checkbox on website based on info in different column](https://forum.uipath.com/t/unable-to-click-checkbox-on-website-based-on-info-in-different-column/360141/5):
>
> Hi, Can you try the following steps? Open Uiexplore, then select the checkbox. We’ll see various attributes in top right area, then check there is tableRow. This means row number of the checkbox. Scraping all the table. Iterate the table using ForEachRow and set index variable (Let’s say i) at Index property. In the loop, check total value of the row. If it’s greater than 0, Check the checkbox using Check activity (or Click activity). The selector will be like the following, for ex…

---

<div class="post-metadata">

**Author:** ![zuka](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/zuka/32/108479_2.png) [@zuka](https://forum.uipath.com/u/zuka)\
**Post date:** [November 26, 2021, 12:54am UTC](https://forum.uipath.com/t/topic/364218/3 "2021-11-26T00:54:41Z")

</div>

お世話になります。

日本語翻訳して確認してみましたが、  
４の項目について再度お伺いしてもよろしいでしょうか。

１～３についてはデータスクレイピングで表を取得し、indexを背ってした後その取得したレコード分だけ繰り返しを行うということだと理解しましたが、  
４の項目だけ申し訳ありませんがご教示いただけますと幸いです。

---

<div class="post-metadata">

**Author:** ![Yoichi](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/yoichi/32/523754_2.png) [@Yoichi](https://forum.uipath.com/u/Yoichi)\
**Post date:** [November 26, 2021, 1:41am UTC](https://forum.uipath.com/t/topic/364218/4 "2021-11-26T01:41:10Z")

</div>

こんにちは

繰り返しのインデックスで、指定すべき行番号は把握できると思いますので、  
それを動的セレクターを用いて、対象のチェックボックスを指定することになります。  
tableRow属性が使えるならそれが行番号を意味しますので、オフセット量などを考慮  
しながら、これを設定します。

> **[動的セレクター](https://docs.uipath.com/studio/lang-ja/docs/dynamic-selectors)**
>
> A dynamic selector uses a variable or an argument as a property for the attribute of your target tag. This allows the selector to easily identify a target element based on the value of the variable or argument, and not an exact string, which might...

---

<div class="post-metadata">

**Author:** ![zuka](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/zuka/32/108479_2.png) [@zuka](https://forum.uipath.com/u/zuka)\
**Post date:** [November 30, 2021, 4:57am UTC](https://forum.uipath.com/t/topic/364218/5 "2021-11-30T04:57:57Z")

</div>

お世話になっております。

解決いたしました。  
ありがとうございました！

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [December 3, 2021, 4:58am UTC](https://forum.uipath.com/t/topic/364218/6 "2021-12-03T04:58:54Z")

</div>

Closed on December 3, 2021, 4:58am UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
