UiPath Documentation
activities
latest
false
重要 :
このコンテンツの一部は機械翻訳によって処理されており、完全な翻訳を保証するものではありません。 新しいコンテンツの翻訳は、およそ 1 ~ 2 週間で公開されます。

UI Automation アクティビティ

WaitState

要素がユーザー インターフェイスで表示されているか、それとも消滅しているかを検証して、アプリケーションまたは Web ブラウザーのステートを確認します。

この API は Open または Attach の後に追加する必要があります。

定義

名前空間: UiPath.UIAutomationNext.API.Models

アセンブリ: UiPath.UIAutomationNext.API.Models (in UiPath.UIAutomationNext.API.Models dll)

オーバー ロード

オーバーロード説明
WaitState(String, NClickStateMode, Double)(オブジェクト リポジトリで文字列として識別される) 要素がユーザー インターフェイスで表示されているか、それとも消滅しているかを検証してアプリケーションまたは Web ブラウザーのステートを確認し、イベントを待機する秒数を選択します。
WaitState(String, CheckStateOptions)(オブジェクト リポジトリで文字列として識別される) 要素がユーザー インターフェイスに表示されるか消滅するかを検証することにより、アプリケーションまたは Web ブラウザーのステートを確認します。同時に、イベントを待機する秒数やその他の設定を選択します。
WaitState(TargetAnchorableModel, CheckStateOptions)(TargetAnchorableModel オブジェクトとして識別される) 要素がユーザー インターフェイスで表示されているか、それとも消滅しているかを検証してアプリケーションまたは Web ブラウザーのステートを確認するとともに、他の設定も選択します。
WaitState(TargetAnchorableModel, NCheckStateMode, Double)(TargetAnchorableModel オブジェクトとして識別される) 要素がユーザー インターフェイスに表示されるか消滅するかを検証することにより、アプリケーションまたは Web ブラウザーのステートを確認します。同時に、イベントを待機する秒数を選択します。

WaitState(String, NClickStateMode, Double)

(オブジェクト リポジトリで文字列として識別される) 要素がユーザー インターフェイスで表示されているか、それとも消滅しているかを検証してアプリケーションまたは Web ブラウザーのステートを確認し、イベントを待機する秒数を選択します。

bool WaitState(
    string target,
    NCheckStateMode checkStateMode,
    double timeout)
bool WaitState(
    string target,
    NCheckStateMode checkStateMode,
    double timeout)

target string : ステートを確認する UI 要素です。オブジェクト リポジトリで文字列として識別されます。

checkStateMode NCheckStateMode : アプリケーションまたはブラウザーのステートを特定するために使用するイベントを選択します。

* `WaitAppear` - Wait for the element to appear in the
  user interface.
* `WaitDissapear` - Wait for the element to disappear
  from the user interface.
* `WaitAppear` - Wait for the element to appear in the
  user interface.
* `WaitDissapear` - Wait for the element to disappear
  from the user interface.

timeout Double : イベント (要素の出現または消滅) を待機する秒数を指定します。既定値は 5 秒です。

WaitState(String, CheckStateOptions)

(オブジェクト リポジトリで文字列として識別される) 要素がユーザー インターフェイスに表示されるか消滅するかを検証することにより、アプリケーションまたは Web ブラウザーのステートを確認します。同時に、イベントを待機する秒数やその他の設定を選択します。

bool WaitState( 
    string target,
    CheckStateOptions checkStateOptions)
bool WaitState( 
    string target,
    CheckStateOptions checkStateOptions)

target string : ステートを確認する UI 要素です。オブジェクト リポジトリで文字列として識別されます。

checkStateOptions NCheckStateMode : 次のオプションを選択します。

* `checkStateMode NCheckStateMode` - Select which event
  to use for determining the state of the application or browser:
  + `WaitAppear` - Wait for the element to appear
    in the user interface.
  + `WaitDissapear` - Wait for the element to
    disappear from the user interface.
* `timeout Double` - Specify the number of seconds for
  which to wait for the event (element to appear or to disappear). The
  default value is 5 seconds.
* `checkStateMode NCheckStateMode` - Select which event
  to use for determining the state of the application or browser:
  + `WaitAppear` - Wait for the element to appear
    in the user interface.
  + `WaitDissapear` - Wait for the element to
    disappear from the user interface.
* `timeout Double` - Specify the number of seconds for
  which to wait for the event (element to appear or to disappear). The
  default value is 5 seconds.

WaitState(TargetAnchorableModel, CheckStateOptions)

(TargetAnchorableModel オブジェクトとして識別される) 要素がユーザー インターフェイスで表示されているか、それとも消滅しているかを検証してアプリケーションまたは Web ブラウザーのステートを確認するとともに、他の設定も選択します。

bool WaitState(
    TargetAnchorableModel target,
    CheckStateOptions checkStateOptions)
bool WaitState(
    TargetAnchorableModel target,
    CheckStateOptions checkStateOptions)

target TargetAnchorableModel : ステートを確認する UI 要素です。 TargetAnchorableModel オブジェクトとして識別されます。

checkStateOptions NCheckStateMode : 次のオプションを選択します。

* `checkStateMode NCheckStateMode` - Select which event
  to use for determining the state of the application or browser:
  + `WaitAppear` - Wait for the element to appear
    in the user interface.
  + `WaitDissapear` - Wait for the element to
    disappear from the user interface.
* `timeout Double` - Specify the number of seconds for
  which to wait for the event (element to appear or to disappear). The
  default value is 5 seconds.
* `checkStateMode NCheckStateMode` - Select which event
  to use for determining the state of the application or browser:
  + `WaitAppear` - Wait for the element to appear
    in the user interface.
  + `WaitDissapear` - Wait for the element to
    disappear from the user interface.
* `timeout Double` - Specify the number of seconds for
  which to wait for the event (element to appear or to disappear). The
  default value is 5 seconds.

WaitState(TargetAnchorableModel, NCheckStateMode, Double)

(TargetAnchorableModel オブジェクトとして識別される) 要素がユーザー インターフェイスに表示されるか消滅するかを検証することにより、アプリケーションまたは Web ブラウザーのステートを確認します。同時に、イベントを待機する秒数を選択します。

bool WaitState(
    TargetAnchorableModel target,
    NCheckStateMode checkStateMode,
    [double timeout])
bool WaitState(
    TargetAnchorableModel target,
    NCheckStateMode checkStateMode,
    [double timeout])

target TargetAnchorableModel : ステートを確認する UI 要素です。 TargetAnchorableModel オブジェクトとして識別されます。

checkStateMode NCheckStateMode : アプリケーションまたはブラウザーのステートを特定するために使用するイベントを選択します。

* `WaitAppear` - Wait for the element to appear in the
  user interface.
* `WaitDissapear` - Wait for the element to disappear
  from the user interface.
* `WaitAppear` - Wait for the element to appear in the
  user interface.
* `WaitDissapear` - Wait for the element to disappear
  from the user interface.

timeout Double : イベント (要素の出現または消滅) を待機する秒数を指定します。既定値は 5 秒です。

戻り値

要素が存在するかどうかを示します。

このページは役に立ちましたか?

接続

ヘルプ リソース サポート

学習する UiPath アカデミー

質問する UiPath フォーラム

最新情報を取得