订阅

UiPath 机器人

UiPath 机器人指南

关于 Robot JavaScript SDK

About

用于机器人的 JavaScript SDK (UiPathRobot.js) 允许您将本地有人值守的机器人直接上下文关联地嵌入到现有应用程序中。

请参阅以下操作:

先决条件

A few things need to be considered first, such as having Studio and Robot v2019.10 or greater, connecting the Robot to Orchestrator, and installing the Robot JavaScript add-on. With the add-on installed, download the JavaScript SDK and use these SDK specifications to build your custom application or web page.

要使用 JavaScript SDK,需要将机器人的 JS 外接程序安装在执行此流程的最终用户的计算机上。机器人外接程序会公开应用程序或网页与目标计算机上 UiPath 机器人之间的安全通信层,以便可以接收和执行命令。

🚧

重要提示:

如要让 RobotJS 插件在 Windows Server 2012 R2、Windows 8 和 Windows 8.1 上运行,请确保使用 Robot JS v1.2.5 或更高版本和不低于 2021.4.4 的 Robot 版本。

从 1.2.7 Robot JavaScript SDK 版本开始,支持以下 macOS 平台:

  • ARMv8
  • AMD64

获取 JavaScript SDK

针对 Studio v2020.4 版本及更高版本提供开箱即用的 Robot JavaScript SDK。Robot JavaScript SDK 在 Apache 2.0 许可证下提供,可从以下来源下载和安装:

NPM

该 SDK 是一个带有 TypeScript 绑定的 NPM 包。您可以通过在项目目录的根目录中运行以下命令来将其纳入项目中。

* NPMnpm install --save @uipath/robot

CDN

纳入 SDK 最简单的方法是在 </body> 标签结束之前添加。

* Versioned:<script src="https://download.uipath.com/js/1.2.9/UiPathRobot.js"/>

直接下载

通过直接下载,您可以在 .js 包中获得 Robot Javascript SDK 的简化版本。

* Direct Download https://download.uipath.com/js/1.2.9/UiPathRobot.js

Documentation

The Developer Guide combined with the User Guide offer a comprehensive overview of the SDK and JavaScript Add-on for Robot, containing detailed information on how to use it, what prerequisites you need, and a step-by-step guide to create your first robot enabled application.

The Robot JavaScript SDK functionality can also be developed in .NET by making use of the Robot API commands.

规范

  • The full documentation of SDK Specifications provides detailed information on Models and Methods used by the Robot Javascript SDK.

  • Sample References offer pre-built samples for Boilerplate and Office Applications that can be easily integrated in your custom application.

macOS 上的 RobotJS

Robot JavaScript SDK 从 1.2.7 版开始适用于 macOS,并与 UiPath Assistant for Mac 捆绑。

该功能与 Windows 版本类似,但有几个例外:

  • 不支持 Safari 浏览器。
  • 没有可用的独立版本。
  • 只能执行跨平台自动化。

试试吧!

To see it in action, we have created a demo with the help of the Robot Javascript SDK which securely connect to your already installed Robot, fetches the processes available in your UiPath Assistant and displays them on this page.

单击下面的“列出进程”按钮并同意此页面,以查看其在现实中的运作方式:

约一个月前更新


关于 Robot JavaScript SDK


建议的编辑仅限用于 API 参考页面

您只能建议对 Markdown 正文内容进行编辑,而不能建议对 API 规范进行编辑。