UiPath Documentation
activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

用户界面自动化活动

上次更新日期 2026年5月22日

设备类

创建您要连接的设备对象。

定义

命名空间:UiPath.MobileAutomation.API.Contracts

程序集:UiPath.MobileAutomation.API(在 UiPath.MobileAutomation.API.dll 中)

语法

public class Device
public class Device

Device类型公开以下成员。

构造函数

public Device()
public Device()

Device :初始化Device类的新实例。

属性

功能

<string, string>对的集合,用于指定您连接到的设备的功能。

定义

命名空间:UiPath.MobileAutomation.API.Models

程序集:UiPath.MobileAutomation.API(在 UiPath.MobileAutomation.API.dll 中)

语法

属性值字典< StringString >

public Dictionary<string, string> Capabilities { get; }
public Dictionary<string, string> Capabilities { get; }

DeviceName

要自动化的特定设备的名称(例如, iPhone 13 )。

定义

命名空间:UiPath.MobileAutomation.API.Models

程序集:UiPath.MobileAutomation.API(在 UiPath.MobileAutomation.API.dll 中)

语法

属性值String

public string DeviceName { get; }
public string DeviceName { get; }

显示名称

设备的显示名称。

定义

命名空间:UiPath.MobileAutomation.API.Models

程序集:UiPath.MobileAutomation.API(在 UiPath.MobileAutomation.API.dll 中)

语法

属性值String

public string DisplayName { get; }
public string DisplayName { get; }

HttpHeaders

<string, string>对的集合,这些对表示要添加到默认 Http 请求的自定义 Http 标头。

定义

命名空间:UiPath.MobileAutomation.API.Models

程序集:UiPath.MobileAutomation.API(在 UiPath.MobileAutomation.API.dll 中)

语法

属性值字典< StringString >

public Dictionary<string, string> HttpHeaders { get; }
public Dictionary<string, string> HttpHeaders { get; }

平台名称

托管浏览器的平台类型。

定义

命名空间:UiPath.MobileAutomation.API.Models

程序集:UiPath.MobileAutomation.API(在 UiPath.MobileAutomation.API.dll 中)

语法

属性值: PlatformType

public PlatformType PlatformName { get; }
public PlatformType PlatformName { get; }

PlatformVersion

平台版本(例如,对于 iOS,为 16.0 )。

定义

命名空间:UiPath.MobileAutomation.API.Models

程序集:UiPath.MobileAutomation.API(在 UiPath.MobileAutomation.API.dll 中)

语法

属性值String

public string PlatformVersion { get; }
public string PlatformVersion { get; }

URL

要用于连接到移动设备的 Appium 服务器 URL。

定义

命名空间:UiPath.MobileAutomation.API.Models

程序集:UiPath.MobileAutomation.API(在 UiPath.MobileAutomation.API.dll 中)

语法

属性值String

public string Url { get; }
public string Url { get; }
  • 定义
  • 语法
  • 构造函数
  • 属性
  • 功能
  • DeviceName
  • 显示名称
  • HttpHeaders
  • 平台名称
  • PlatformVersion
  • URL

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新