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

接続

接続: デバイスをアプリケーションに接続します。

デバイスをアプリケーションに接続します。

定義​

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

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

オーバー ロード​

オーバーロード説明
Connect(Device, Application, ConnectionOptions)デバイスとアプリケーション オブジェクトを接続します。
Connect(string, string, ConnectionOptions)モバイル デバイス マネージャーの設定に従って、デバイスとアプリケーションの両方を接続します。

Connect(Device, Application, ConnectionOptions)​

デバイスとアプリケーション オブジェクトを接続します。

Connect(
	    Device device,
	    Application application = null,
	    ConnectionOptions options = null
)
Connect(
	    Device device,
	    Application application = null,
	    ConnectionOptions options = null
)

device Device : 接続するデバイス オブジェクトです。

application Application : モバイル デバイス マネージャーで設定したアプリケーション オブジェクトです。

options ConnectionOptions (任意) : 接続をさらに設定するためのオプションです。

Connect(string, string, ConnectionOptions)​

モバイル デバイス マネージャーの設定に従って、デバイスとアプリケーションの両方を接続します。

Connect(
	    string name,
	    string applicationName = null,
	    ConnectionOptions options = null
)
Connect(
	    string name,
	    string applicationName = null,
	    ConnectionOptions options = null
)

name文字列: モバイル デバイス マネージャーで設定したデバイスの名前です。

applicationName文字列: モバイル デバイス マネージャーで設定したアプリケーションの名前です。

options ConnectionOptions (任意) : 接続をさらに設定するためのオプションです。

戻り値​

Connection

モバイル オートメーションのコード化されたオートメーション API を使用するための接続オブジェクトです。

MobileOptions.ConnectOptions クラス​

MobileOptions.ConnectOptions クラスを使用して、コード化されたオートメーション内のモバイル デバイス接続の追加設定を行います。

定義​

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

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

構文​

public class ConnectOptions : MobileOptions
public class ConnectOptions : MobileOptions

コンストラクター​

public ConnectOptions()
public ConnectOptions()

MobileOptions.ConnectOptions: MobileOptions.ConnectOptions クラスの新しいインスタンスを初期化します。

プロパティ​

UseExistingSession Boolean: trueに設定すると、接続の詳細が一致する場合にのみ、Studio はコード化されたオートメーション API の実行にモバイル デバイス マネージャーの既存の接続を再利用します。既存のコネクションを使用すると、実行時間を短縮できます。

MirroringEnabled Boolean: mirroringEnabled パラメーターを trueに設定すると、開いているモバイル デバイス マネージャー (MDM) で実行フローがミラーリングされます。ただし、このパラメーターが明示的に設定されていない場合でも、[ UseExistingSession ] パラメーターが設定されていると、開いている MDM で実行がミラーリングされます。

SingleInstance Boolean: 複数のモバイル デバイス接続を管理するために使用します。trueに設定すると、MDM 内で同じ接続の詳細を共有している、開いている接続がないか検索して閉じます。falseに設定すると、既存のすべての接続が開いたままになります。

Mobile device connections are considered the same if they match the following information, which is not case sensitive:

* URL
* Platform name
* Device name
* Platform version
Mobile device connections are considered the same if they match the following information, which is not case sensitive:

* URL
* Platform name
* Device name
* Platform version

WaitForPageUpdate Boolean: trueに設定すると、アクションの実行後、スクリーンショットとコントロール ツリーの両方が更新されるまで待機してから、次のアクションに進みます。falseに設定すると、システムはすぐに次のアクションに進みます。

クラス​

ログ記録モデル​
  • 構文: public class LoggingModel: ConnectOptions<[>
  • コンストラクター: public LoggingModel()
  • プロパティ:
    • IgnoreConditionalFields Boolean : true に設定すると、条件付きフィールドが無視されます。
    • LoggingEnabled Boolean : true に設定すると、接続のログ記録が有効化されます。
    • FolderPath文字列: ログの保存先のマシン上のフォルダー パスを入力します。
    • VideoRecordingEnabled Boolean : true に設定すると、実行のビデオ録画が有効化されます。
    • RecordingTimeLimit Int32: ビデオ録画できる最大秒数を指定します。
    • VideoQuality VideoQuality : 録画のビデオ品質の種類を選択します。以下のオプションから選択できます。 - VideoQuality.Low - VideoQuality.Normal - VideoQuality.High - VideoQuality.Photo
    • CollectScreenshot Collect: 実行中にスクリーンショットを作成しないか、コード化されたオートメーション API の実行後にのみスクリーンショットを作成するかを選択します。以下のオプションから選択できます。 - Collect.AfterActivity - Collect.Never
    • CollectPageSource Collect: 実行中にページ ソースを収集しないか、コード化されたオートメーション API の実行後にのみページ ソースを収集するかを選択します。以下のオプションから選択できます。 - Collect.AfterActivity - Collect.Never

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

接続

ヘルプ リソース サポート

学習する UiPath アカデミー

質問する UiPath フォーラム

最新情報を取得