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

属性を取得

指定した UI 要素の属性を取得します。

定義

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

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

オーバー ロード

オーバーロード説明
GetAttribute(IElementDescriptor, string, MobileOptions.GetAttributeOptions)IEelementDescriptor として識別された、指定した UI 要素の属性を取得します。
GetAttribute(ObjectRepositoryTarget, string, MobileOptions.GetAttributeOptions)ObjectRepositoryTarget として識別された、指定した UI 要素の属性を取得します。
GetAttribute(SelectorTarget, string, MobileOptions.GetAttributeOptions)SelectorTarget として識別された、指定した UI 要素の属性を取得します。

GetAttribute(IElementDescriptor, string, MobileOptions.GetAttributeOptions)

IEelementDescriptor として識別された、指定した UI 要素の属性を取得します。
GetAttribute(
	    IElementDescriptor element,
	    string attributeName,
	    MobileOptions. GetAttributeOptions options = null
)GetAttribute(
	    IElementDescriptor element,
	    string attributeName,
	    MobileOptions. GetAttributeOptions options = null
)
element IElementDescriptor
ObjectRepository.Descriptors クラスを使用してアクセスするオブジェクト リポジトリの UI 要素です。

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

attributeName 文字列
指定した UI 要素から取得する属性の名前です。
options MobileOptions.GetAttributeOptions (任意)
GetAttribute アクションの MobileOptions.GetAttributeOptions を指定します。既定値は null です。

GetAttribute(ObjectRepositoryTarget, string, MobileOptions.GetAttributeOptions)

ObjectRepositoryTarget として識別された、指定した UI 要素の属性を取得します。
GetAttribute(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    string attributeName,
	    MobileOptions. GetAttributeOptions options = null
)GetAttribute(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    string attributeName,
	    MobileOptions. GetAttributeOptions options = null
)
objectRepositoryTarget ObjectRepositoryTarget
ObjectRepositoryTarget 型のオブジェクトです。FromObjectRepository(String, String, String, String) または FromObjectRepository(String[] , String, String, String) メソッドを使用して構築できます。
attributeName 文字列
指定した UI 要素から取得する属性の名前です。
options MobileOptions.GetAttributeOptions (任意)
GetAttribute アクションの MobileOptions.GetAttributeOptions を指定します。既定値は null です。

GetAttribute(SelectorTarget, string, MobileOptions.GetAttributeOptions)

SelectorTarget として識別された、指定した UI 要素の属性を取得します。
GetAttribute(
	    SelectorTarget targetSelector,
	    string attributeName,
	    MobileOptions. GetAttributeOptions options = null
)GetAttribute(
	    SelectorTarget targetSelector,
	    string attributeName,
	    MobileOptions. GetAttributeOptions options = null
)
selectorTarget SelectorTarget
SelectorTarget 型のオブジェクトです。FromSelector(String) メソッドを使用して構築できます。
attributeName 文字列
指定した UI 要素から取得する属性の名前です。
options MobileOptions.GetAttributeOptions (任意)
GetAttribute アクションの MobileOptions.GetAttributeOptions を指定します。既定値は null です。

戻り値

取得した属性の値。

Was this page helpful?

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