Abonnieren

UiPath Robot

Anleitung für UiPath Robot

Konfigurationsschritte

Voraussetzungen

Damit Ihre Automatisierungsprojekte vom Roboter-JavaScript-SDK profitieren können, müssen die folgenden Voraussetzungen erfüllt sein:

  • Studio- und Roboterversion 2019.10 oder höher installiert
  • A Robot connected to Orchestrator
  • Das auf der Robotermaschine installierte UiPath JavaScript Add-On
  • Das Roboter-JavaScript-SDK

🚧

Wichtig:

The Robot JavaScript SDK is provided out-of-the box for Studio v2020.4 and greater. For Studio v2019.10 LTS a stand-alone Add-On installer is also available.

Wenn Sie ein Upgrade von v2019.10 auf v2020.2 und höher durchführen, müssen Sie das UiPath Robot JS-Add-on manuell deinstallieren, bevor Sie das Studio- und Robot-Installationsprogramm ausführen.

Allowing access

When the UiPath Robot JavaScript Add-On is run, you need to provide access to your custom application or web page to connect to the Robot.

The access is handled by a two-step dialog. Both steps have to be confirmed in order to run RobotJS. They can be automated as described below.

Browser access dialog

This step refers to the browser requesting permissions to open the UiPath Assistant.

Automatically accepting the Browser access dialog

It can be automated by adding the uipath-web://* value as a trusted (allowed) url in the browser's settings. The uipath-web://* refers to the UiPath Robot web protocol handler.

:information-source: Based on the browser used, different settings need to be configured. For example, if you are using Google Chrome, follow the steps described in the Google Chrome URLAllowList documentation.

729729

Robot consent dialog

The robot consent dialog is used to allow the connection between the Robot JavaScript SDK and the Robot Executor.

726726

Automatically accepting the robot consent dialog

This can be automatically allowed by adding the UIPATH_ROBOTJS_ALLOWLIST System Environment Variable.

The values used in the variable need to be the URLs of your custom application or web page, separated by comma. The URL should contain the port number only if a standard port is not used (80 oder 443).

10081008

Das Roboter-JavaScript-SDK

Dieses SDK bietet alle erforderlichen Methoden und Eigenschaften, die Sie in Ihre benutzerdefinierte Anwendung oder Webseite aufnehmen können. Sie können es wie folgt herunterladen:

NPM

The npm package is available with TypeScript bindings. To include it in your project, you need to execute the following command at the root of your project directory:

npm install --save @uipath/robot

CDN

For CDN, you need to include the SDK before closing the </body> tag.

<body>
...
...
<script src="//download.uipath.com/js/1.2.8/UiPathRobot.js"></script>
</body>

Direct download

You can also grab the Robot JavaScript SDK via direct download.

Add-on settings

In order to change add-on settings, you need to add the ListenerPort and TokenExpiryInDays parameters in the uipath.config file from the installation folder. By default, the section does not contain any keys.

Die Konfigurationsdatei muss Folgendes enthalten:

<robotJsSettings>
    <add key="ListenerPort" value="2323" />
    <add key="TokenExpiryInDays" value="30" />
</robotJsSettings>

Attribute

Description

ListenerPort

The UiPath.RobotJS.ServiceHost.exe starts a HttpListener on the configured port and contains the information about other local listeners from the active user session on that system. Please note that the port value here needs to match the one configured in the SDK Settings.

TokenExpiryInDays

Any request coming from a new domain needs to have consent from the user to allow access of UiPath Robots from a web application. These consents are valid for the said number of days mentioned in this setting.

Aktualisiert vor 2 Monaten


Konfigurationsschritte


Auf API-Referenzseiten sind Änderungsvorschläge beschränkt

Sie können nur Änderungen an dem Textkörperinhalt von Markdown, aber nicht an der API-Spezifikation vorschlagen.