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

DeviceBuilder クラス

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

定義

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

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

構文

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

コンストラクター

DeviceBuilder(
	    string appiumUrl,
	    string displayName
)DeviceBuilder(
	    string appiumUrl,
	    string displayName
)
DeviceBuilder
DeviceBuilder クラスの新しいインスタンスを初期化します。
appiumUrl 文字列
Appium URL
displayName 文字列
デバイスの名前

メソッド

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

開発

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>
デバイスに必要な追加機能です。
設定できる追加機能については、「Appium の機能」をご覧ください。

戻り値

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 文字列
設定する機能の名前です。
設定できる追加機能については、「Appium の機能」をご覧ください。
value 文字列
機能の値を入力します。

戻り値

DeviceBuilder

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

WithDeviceName

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

定義

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

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

DeviceBuilder.DeviceName(string)

WithDeviceName(
	    string deviceName
)WithDeviceName(
	    string deviceName
)
deviceName 文字列
自動化する特定のデバイスの名前です (例: 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>
追加するカスタム ヘッダーの名前と値です。

戻り値

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
アプリまたはブラウザーをホストするプラットフォームの種類です。

戻り値

DeviceBuilder

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

WithPlatformVersion

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

定義

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

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

DeviceBuilder.WithPlatformVersion(string)

WithPlatformVersion(
	    string version
)WithPlatformVersion(
	    string version
)
version 文字列
プラットフォームのバージョンです (例: iOS 16)。

戻り値

DeviceBuilder

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

Was this page helpful?

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