gorby
(RPA Ninja)
March 20, 2024, 10:05am
1
こんにちは。
UiPath Studio Community Edition 23.8.1版を利用中の者です。
下記はExcelの顧客データをWeb登録するデモサイトです。
https://www.rpachallenge.com/?lang=JA
上記サイトで登録ボタンをクリックしてTraffic Congestionのため次の画面に遷移できない場合にTimeoutExceptionをThrowしたいです。
登録ボタンをクリックして次の画面に遷移できれば、Check stateアクティビティ内でTimeoutExceptionをThrow可能ですが、残念ながら、
登録ボタンをクリックしても、同じ画面になってしまいます。
このサイトは、登録ボタンをクリックしたら、入力項目の位置が毎回変化するため、
登録ボタンをクリック後、例えば、5秒待機しても”苗字”の入力項目の位置が変化しない場合にTimeoutExceptionをThrowすれば目的が達成できるのではと考えました。
UIExploreで見たら、プロパティエクスプローラのpositionあたりをGetできれば位置の変化を検知できそうでしたが、具体的方法が分かりません。入力項目の位置の変化をWFで検知する具体的方法が分かる方、ご教授ください。同じ目的(登録ボタンをクリック後のTraffic Congestion検出)を達成できれば、他の手段でも構いません。
Anil_G
(Anil Gorthi)
March 20, 2024, 10:57am
2
@gorby
You can use get position activity to get the position details of an element
if that is what you are looking for
cheers
gorby
(RPA Ninja)
March 20, 2024, 11:48am
3
Anil_G:
get position activity
Hi, Thank you for your advice.
As this is my first experience to use this activity, pls let me know which property(1 or 2) is appropriate to compare two UI elements positons?
Anil_G
(Anil Gorthi)
March 20, 2024, 11:52am
4
@gorby
2 would be appropriate …that gives the coordinates where it is found
cheers
gorby
(RPA Ninja)
March 20, 2024, 11:54am
5
Hi, Thank you for your advice.
Pls give me one more advice.
How can I compare two rectangle variables?
Pls show me example code.
Anil_G
(Anil Gorthi)
March 20, 2024, 12:04pm
6
@gorby
as both are same type var1.equals(var2) should do the job
cheers