アクティビティ
最新
バナーの背景画像
UI Automation のアクティビティ
最終更新日 2024年4月26日

ElementExists

指定された UI 要素が存在するかどうかを示すブール変数を返します。

定義

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

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

オーバー ロード

オーバーロード説明
ElementExists(IElementDescriptor, MobileOptions.ElementExistsOptions)オブジェクト リポジトリの要素 (IElementDescriptor) が存在するかどうかを示す Boolean 変数を返します。
ElementExists(ObjectRepositoryTarget, MobileOptions.ElementExistsOptions)オブジェクト リポジトリのターゲット (ObjectRepositoryTarget) が存在するかどうかを示す Boolean 変数を返します。
ElementExists(SelectorTarget, MobileOptions.ElementExistsOptions)ネイティブ セレクター (SelectorTarget) が存在するかどうかを示す Boolean 変数を返します。

ElementExists(IElementDescriptor, MobileOptions.ElementExistsOptions)

オブジェクト リポジトリの要素 (IElementDescriptor) が存在するかどうかを示す Boolean 変数を返します。
ElementExists(
	    IElementDescriptor element,
	    MobileOptions. ElementExistsOptions options = null
)ElementExists(
	    IElementDescriptor element,
	    MobileOptions. ElementExistsOptions options = null
)
element
ObjectRepository.Descriptors クラスを使用してアクセスするオブジェクト リポジトリの UI 要素です。

モバイル オートメーションでオブジェクト リポジトリの要素を使用する方法については、「モバイル オートメーションを使用して、コード化されたオートメーションでオブジェクトを使用する」をご覧ください。

options MobileOptions.ElementExistsOptions
ElementExistsOptions アクションの MobileOptions.ElementExistsOptions を指定します。既定値は null です。

ElementExists(ObjectRepositoryTarget, MobileOptions.ElementExistsOptions)

オブジェクト リポジトリのターゲット (ObjectRepositoryTarget) が存在するかどうかを示す Boolean 変数を返します。
ElementExists(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    MobileOptions. ElementExistsOptions options = null
)ElementExists(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    MobileOptions. ElementExistsOptions options = null
)
objectRepositoryTarget ObjectRepositoryTarget
ObjectRepositoryTarget 型のオブジェクトです。
options MobileOptions.ElementExistsOptions
ElementExistsOptions アクションの MobileOptions.ElementExistsOptions を指定します。既定値は null です。

ElementExists(SelectorTarget, MobileOptions.ElementExistsOptions)

ネイティブ セレクター (SelectorTarget) が存在するかどうかを示す Boolean 変数を返します。
ElementExists(
	    SelectorTarget targetSelector,
	    MobileOptions. ElementExistsOptions options = null
)ElementExists(
	    SelectorTarget targetSelector,
	    MobileOptions. ElementExistsOptions options = null
)
targetSelector SelectorTarget
SelectorTarget 型のオブジェクトです。FromSelector(String) メソッドを使用して構築できます。
options MobileOptions.ElementExistsOptions
ElementExistsOptions アクションの MobileOptions.ElementExistsOptions を指定します。既定値は null です。

戻り値

True : 要素が存在する場合、False: 要素が存在しない場合。

Was this page helpful?

サポートを受ける
RPA について学ぶ - オートメーション コース
UiPath コミュニティ フォーラム
UiPath ロゴ (白)
信頼とセキュリティ
© 2005-2024 UiPath. All rights reserved.