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

UI Automation のアクティビティ

最終更新日時 2025年3月25日

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 として抽出します。
 [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]GetText(
	    IElementDescriptor element,
	    MobileOptions. GetTextOptions options = null
)
要素
ObjectRepository.Descriptors クラスを使用してアクセスするオブジェクト リポジトリの UI 要素です。

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

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

GetText(ObjectRepositoryTarget, MobileOptions.GetTextOptions)

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

GetText(SelectorTarget, MobileOptions.GetTextOptions)

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

戻り値

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

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

サポートを受ける
RPA について学ぶ - オートメーション コース
UiPath コミュニティ フォーラム
Uipath Logo White