UiPath Documentation
robot
2024.10
false
机器人管理员指南
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。

RobotJS

Robot JavaScript SDK (RobotJS),一个用于将 UiPath 自动化功能合并到 JavaScript 应用程序中的库。

使用 UiPath 的 Robot JavaScript SDK (即 Robot JS),您可以将 UiPath 自动化功能合并到 JavaScript 应用程序中。它提供了一组 JavaScript 库,可充当基于 JavaScript 的应用程序和 UiPath 机器人之间的通信桥梁。

此 SDK 扩展了直接从 JavaScript 应用程序创建、监控和管理流程的能力。

先决条件

RobotJS requires the following:

  • Studio and Robot version 2019.10 or greater installed on the machine
  • Robot JavaScript add-on installed on the machine that executes the process
  • Robot connected to an Orchestrator instance

Windows 操作系统上的 RobotJS

要在 Windows Server 2012 R2、Windows 8 和 8.1 上使用 RobotJS 插件,您需要:

  • Robot JS 版本 1.2.5 及以上
  • Robot 版本 2021.4.4 及以上

macOS 上的 RobotJS

要在 macOS ARMv8 和 AMD64 上使用 RobotJS 插件,您需要:

  • Robot JS 版本 1.2.7 及以上
  • Robot 版本 2021.4.4 及以上

其功能与 Windows 操作系统类似,但有一些例外:

  • 它不支持 Safari 浏览器,
  • 它不提供独立版本,并且
  • 它仅执行跨平台自动化。

获取 Robot JavaScript SDK

Studio versions 2020.4+ provide the Robot JavaScript SDK by default. Licensed under Apache 2.0, it is available from the following sources:

  • NPM: The SDK is available as an NPM package with TypeScript bindings. The NPM package can be included in a project by running the following command at the root of the project directory:
    npm install --save @uipath/robot
    npm install --save @uipath/robot
    
  • CDN: The CDN version is added before the closing </body> tag:
    <script href="https://download.uipath.com/js/1.3.2/UiPathRobot.js"/>
    <script href="https://download.uipath.com/js/1.3.2/UiPathRobot.js"/>
    
  • Direct download: The minimized version of the Robot Javascript SDK is available as a .js package:
    https://download.uipath.com/js/1.3.2/UiPathRobot.js
    https://download.uipath.com/js/1.3.2/UiPathRobot.js
    

文档

《开发者指南》《用户指南》相结合,提供了针对 Robot 的完整 SDK 和 JavaScript 加载项概述,详细介绍了用法、先决条件以及初始启用机器人的应用程序创建。

您还可以使用命令在 .NET 中开发机器人 JavaScript SDK 功能。

规范

  • SDK 规范的完整文档提供了有关机器人 Javascript SDK 所用模型和方法的详细信息。
  • 示例参考提供了适用于样板和 Office 应用程序的预制样本,您可以轻松地将其集成到自己的自定义应用程序中。

试试吧

A practical demo using the Robot JavaScript SDK is available at Robot JS Demo. The demo securely connects to your existing Robot, retrieves the processes from UiPath Assistant, and displays them after access authorization is granted.

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新