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

DeviceBuilder クラス

モバイル オートメーション API の DeviceBuilder クラス クラス: このクラスを使用して、接続するデバイスを構成します。

このクラスを使用して、接続するデバイスを構成します。

定義

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

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

構文

public class DeviceBuilder
public class DeviceBuilder

DeviceBuilder 型で公開されているメンバーは以下のとおりです。

コンストラクター

DeviceBuilder(
	string appiumUrl,
	string displayName
)
DeviceBuilder(
	string appiumUrl,
	string displayName
)

DeviceBuilder: Initializes a new instance of the DeviceBuilder class.

appiumUrl String: The Appium URL.

displayName String: The name of the device

メソッド

これらは、デバイスの構築に使用できるメソッドです。

開発

Device オブジェクトを作成します。

定義

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

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

DeviceBuilder.Build()
public Device Build()
public Device Build()
戻り値

コネクションの作成に使用する Device オブジェクトです。

WithCapabilities

デバイスに必要な追加機能を設定します。

定義

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

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

DeviceBuilder.WithCapabilities
WithCapabilities(
	Dictionary<string, string> capabiltiies
)
WithCapabilities(
	Dictionary<string, string> capabiltiies
)

capabilities Dictionary < String, String>: Additional desired capabilities for a device. Visit Appium capabilities to learn about the additional capabilities that you can configure.

戻り値

DeviceBuilder

更新後のデバイス ビルダーを返します。

WithCapability

デバイスの 1 つの機能を設定します。

定義

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

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

DeviceBuilder.WithCapability(string, string)
WithCapability(
	string key,
	string value
)
WithCapability(
	string key,
	string value
)

key String: The name of the capability that you want to configure. Visit Appium capabilities to learn about the additional capabilities that you can configure.

value String: Enter the value of the capability.

戻り値

DeviceBuilder

更新後のデバイス ビルダーを返します。

WithDeviceName

デバイスの名前を指定します。

定義

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

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

DeviceBuilder.DeviceName(string)
WithDeviceName(
	string deviceName
)
WithDeviceName(
	string deviceName
)

deviceName String: The name of a particular device to automate. (for example, iPhone 13).

戻り値

DeviceBuilder

更新後のデバイス ビルダーを返します。

WithHttpHeaders

Appium により生成される既定のヘッダーにカスタム HTTP ヘッダーを追加して、プロキシの背後でのモバイル テストを実行しやすくします。カスタム HTTP ヘッダーを使用すると、特定のヘッダーのみを受け入れるプロキシを追加して、モバイル テストを実行できるようになります。追加するカスタム ヘッダーは既存のヘッダーを上書きしませんが、ヘッダーがサポートする値のコレクションに追加されます。

定義

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

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

DeviceBuilder.WithHttpHeaders(string)
WithHttpHeaders(
	Dictionary<string, string> headers
)
WithHttpHeaders(
	Dictionary<string, string> headers
)

headers Dictionary < String, String>: The names and values of the custom headers that you want to add.

戻り値

DeviceBuilder

更新後のデバイス ビルダーを返します。

WithPlatformName

デバイスのプラットフォーム名を指定します。

定義

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

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

DeviceBuilder.WithPlatformName(PaltformType)
WithPlatformName(
	PlatformType type
)
WithPlatformName(
	PlatformType type
)

type PlatformType: The type of platform hosting the app or browser.

戻り値

DeviceBuilder

更新後のデバイス ビルダーを返します。

WithPlatformVersion

デバイスのプラットフォームのバージョンを指定します。

定義

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

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

DeviceBuilder.WithPlatformVersion(string)
WithPlatformVersion(
	string version
)
WithPlatformVersion(
	string version
)

version String: The version of a platform. (For example, iOS 16)

戻り値

DeviceBuilder

更新後のデバイス ビルダーを返します。

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

接続

ヘルプ リソース サポート

学習する UiPath アカデミー

質問する UiPath フォーラム

最新情報を取得