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

GetText

指定した UI 要素からテキストを抽出し、String 変数として返します。

定義

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

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

オーバー ロード

  
GetText(IElementDescriptor, MobileOptions.GetTextOptions)指定した UI 要素からテキストを IElementDescriptor として抽出します。
GetText(ObjectRepositoryTarget, MobileOptions.GetTextOptions)指定した UI 要素からテキストを ObjectRepositoryTarget として抽出します。
GetText(SelectorTarget, MobileOptions.GetTextOptions)指定した UI 要素からテキストを SelectorTarget として抽出します。

GetText(IElementDescriptor, MobileOptions.GetTextOptions)

指定した UI 要素からテキストを IElementDescriptor として抽出します。
GetText(
	    IElementDescriptor element,
	    MobileOptions. GetTextOptions options = null
)GetText(
	    IElementDescriptor element,
	    MobileOptions. GetTextOptions options = null
)
element
ObjectRepository.Descriptors クラスを使用してアクセスするオブジェクト リポジトリの UI 要素です。

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

MobileOptions.GetTextOptions MobileOptions.GetTextOptions (任意)
GetText アクションの MobileOptions.GetTextOptions を指定します。既定値は null です。

GetText(ObjectRepositoryTarget, MobileOptions.GetTextOptions)

指定した UI 要素からテキストを ObjectRepositoryTarget として抽出します。
GetText(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    MobileOptions. GetTextOptions options = null
)GetText(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    MobileOptions. GetTextOptions options = null
)
objectRepositoryTarget ObjectRepositoryTarget
ObjectRepositoryTarget 型のオブジェクトです。
MobileOptions.GetTextOptions MobileOptions.GetTextOptions (任意)
GetText アクションの MobileOptions.GetTextOptions を指定します。既定値は null です。

GetText(SelectorTarget, MobileOptions.GetTextOptions)

指定した UI 要素からテキストを SelectorTarget として抽出します。
GetText(
	    SelectorTarget targetSelector,
	    MobileOptions. GetTextOptions options = null
)GetText(
	    SelectorTarget targetSelector,
	    MobileOptions. GetTextOptions options = null
)
targetSelector SelectorTarget
SelectorTarget 型のオブジェクトです。FromSelector(String) メソッドを使用して構築できます。
MobileOptions.GetTextOptions MobileOptions.GetTextOptions (任意)
GetText アクションの MobileOptions.GetTextOptions を指定します。既定値は null です。

戻り値

取得したテキストです。文字列に格納されます。

Was this page helpful?

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