Access websites
When creating a Robot workflow, you can open websites in the built-in browser and configure actions. The built-in browser is based on the selected engine, such as Chromium (CEF). To navigate, use Robot steps. To open a website, insert a Browse step.
For information about selecting a browser for your application, see Types of browsers.
Use the following links to quickly navigate among the topics:
Browser interface
The built-in Chromium browser in RPA supports the following protocols:
- http:
- about:
- https:
- file:
The built-in browser provides the following controls.
|
Button |
Description |
|---|---|
|
|
Go back: Navigates one page back. |
|
|
Go forward: Navigates one page forward. |
|
|
Reload: Reloads the current page. When the page is loading, the button displays a cross to notify that the browser is busy. |
|
|
URL field: Contains either the URL of the currently loaded page or the URL you pasted before navigating to the page. |
|
|
Navigate: Goes to the URL entered in the URL field. If you cannot see the button, scroll the Recorder View window to the right. |
|
|
Save page button: Saves the currently open page in HTML format. If you cannot see the button, scroll the Recorder View window to the right. For more information, see below. |
|
|
Configure proxy: Opens proxy configuration dialog box. If you cannot see the button, scroll the Recorder View window to the right. For more information, see below. |
|
|
Print to PDF: Saves the currently open page to a PDF file. If you cannot see the button, scroll the Recorder View window to the right. For more information, see below. |
- URL in the built-in browser
-
Browser window contains the URL text field in the toolbar. It shows the URL of the loaded web page. You can select the URL and extract the value into a variable using action steps. The tree view shows the URL as well.
- To select the text in the URL field, click the URL field using the Click step.
- To change the address, click the URL field by using the Click step and enter the address using either the Enter Text step or from a variable.
- To go to the entered URL, click the Navigate button to the right of the URL field.
- Command timeout
-
Command timeout for browsing websites is set either on the Desktop Automation tab of the Design Studio Settings window for executing the workflow in Design Studio, or in the Automation Device section on the Security tab of the RoboServer Settings application for RoboServer execution. Refer to the Tungsten RPA Administrator's Guide for more information.
- Copy and paste from system clipboard
-
Currently, it is not possible to use the system clipboard to copy and paste content inside one or multiple robots while using the built-in browser. We recommend that you use the Extract Value step instead to copy and paste content.
Configure proxy
By default, all robots of the Desktop Automation Service use Tungsten RPA global proxy settings. The Desktop Automation Service uses the same proxy settings as the Design Studio and Management Console. See Configuring Proxy Servers in Design Studio and Configuring Proxy Servers in Management Console for more information on proxy server properties.
Remember that the local proxy settings of the built-in browser in Desktop Automation Service have a higher priority than the Tungsten RPA global proxy settings. Make sure the Robot uses the Tungsten RPA global proxy settings, unless the task requires it to use local proxy settings.
To change proxy settings for the built-in browser in the Robot, click the Configure proxy button on the browser toolbar. The following proxy options are available:
- Direct: Proxy is not used.
- Fixed: Specify fixed proxy settings, such as host, port, and a bypass list.
- PAC: Specify the URL of the proxy auto-configuration script file.
- Auto: Click this option if your network provides for automatic proxy configuration, such as the Web Proxy Auto-Discovery Protocol.
- System: Select this option to copy proxy settings from the computer running your robot.
After proxy settings are set, click OK to save the settings and close the dialog box.
- Negotiate authentication for proxy
-
Negotiate authentication is supported for use with proxy servers. When a proxy server is configured for a robot, the Negotiate protocol is automatically used if it is supported by the server.
Print to PDF
Save a web page in PDF format using the Print to PDF button on the browser toolbar.
-
Click the Print to PDF button using the Click step.
After you execute the step, the browser opens either the Save page as PDF document dialog or a download tab for the completed PDF document. The result depends upon the Download to mode setting on the browser step and the RPA version you are using. See the "Download to" option in the Browse step.
-
Specify the full path, including the file name, using the Replace Text step and click OK.
By default, the file is stored in the temporary files folder configured for the current user.
Optionally, save the file to the RFS by selecting Robot File System in the dialog box. In the RFS file name field, enter the path to the configured file system and the file name, such as "myshare/downloaded.pdf." The file system name must correspond to that specified in the Robot File System section in the Management Console.
In Design Studio, to execute a robot that uses Robot File System, place your robot in the shared project.
-
Click Save.
To adjust the PDF file settings, such as page orientation, paper size, and scale, specify options in the PDF Settings property of the Browse step.
Due to limitations with handling of pop-ups for printer selection, you cannot send an opened HTML page or a document directly to a hardware printer. Instead, the system automatically opens the Save page as PDF document dialog box, which lets you save your document in PDF format on a file system or a RFS for printing later.
Save page in HTML
You can save the currently opened page in HTML format using the Save page button on the browser toolbar.
- Click the
Save page button using the Click step.
After you execute the step, the browser opens the Save As dialog box.
- Specify the full path including the file name using the Replace Text step. By
default, the file is stored in the temporary files folder configured for the current user.
Click OK
- Click Save.
Application actions
Application-level actions are actions applied to the entire application and available by right-clicking the application tab in the Recorder View. The following table lists application-level actions for the Chromium built-in browser.
|
Action |
Description |
|---|---|
|
Set Application Name |
Adds a value to the name tag of the browser application. Specify a name that can help you identify the application and create robust and dependable finders. When a web page loads in a new browser window using a link on the opened page, the name tag of the newly opened browser application includes the name of the parent application with a number in brackets, for example name="mainpage(2)". Assign different application names to applications in a robot to avoid errors. |
|
Close Window |
Adds a step to close an opened application window. |
|
Duplicate Window |
Adds a step to duplicate an application tab and open it in a new tab. The state of the application is preserved. |
|
Execute JavaScript |
Adds a step to execute JavaScript on the current page in the main window context. See also Execute JavaScript application actions.
|
|
Navigate |
Adds a step to open a specified URL. Enter the URL in the URL field. |
|
Reload |
Reloads the current web page. |
|
Go Back |
Navigates one page back. Similar to clicking the Go Back button on the browser toolbar. |
|
Go Forward |
Navigates one page forward. Similar to clicking the Go Forward button on the browser toolbar. |
|
Set Cookie |
Adds or replaces a cookie in the browser.
When you set the cookie, the browser enforces the cookie expiration date. If you overwrite a cookie with an expiration date in the past, this cookie is deleted.
For information about managing cookies, see Manage cookies in Chromium built-in browser. |
|
Get Cookie |
Retrieves a cookie value from the browser and stores it in a text variable.
|
|
Delete Cookie |
Deletes the selected cookies.
Specify only URL to delete all host cookies that are visible in the required scope. Specify both URL and Name to delete all domain cookies with the specified name in the scope. |
|
Clear All Cookies |
Removes all cookies from the browser. |
|
Export Cookies |
Exports cookies from the browser and returns them in a text variable.
You can save the result externally and import it using another robot and the Import Cookies application action. |
|
Import Cookies |
Imports cookies that were previously saved by the Export Cookies application action. This step accepts cookies saved by previous versions of Tungsten RPA.
The browser enforces the expiration date from the imported cookies.
|
|
Web Storage |
Manipulates web storage key or value pairs for domains that are loaded into the browser. Web storage does not persist. Any keys are discarded when the robot terminates. Use the Developer Tools to view which web storage areas are loaded into the browser session and the contents of these areas. This action is available both as an application action and as a component action. To use it as an application action:
|
Component actions
Component actions are applied to the selected component or element and available by right-clicking an element in the Recorder View or the tree view. The following table lists component-level actions for the Chromium built-in browser.
Although RPA automatically detects the CEF browser and switches to the appropriate tree mode, you can change the tree mode to ISA both for the entire application and for a particular element by right-clicking it and selecting . For more information, see Tree Modes.
|
Action |
Description |
|---|---|
|
Open Link In New Window |
Applies to web page links. Adds a step that opens the selected link on a new tab in the Recorder View. |
|
Extract Target |
Can be applied to the Anchor HTML element with an href attribute that has a data URL value. It enables the user to extract the data URL value into a binary variable. The value is decoded from the base64 format into binary if necessary. The available types of binary variables include Binary, Image, and PDF. They are all equivalent except that you can preview the Image in the State pane, and the PDF can be opened in the Recorder View from the variable saved in the Extract Target step by using a PDF step. |
|
Execute JavaScript |
Adds a step to execute JavaScript on the current page in the main window context. See also Execute JavaScript application actions.
|
|
Web Storage |
Manipulates web storage key or value pairs for domains that are loaded into the browser. Web storage does not persist. Any keys are discarded when the robot terminates. Use the Developer Tools to view which web storage areas are loaded into the browser session and the contents of these areas. This action is available both as an application action and as a component action. As an application action, additional options are available that do not apply in component actions. To use it as a component action:
|
|
Scroll To |
Adds a step that scrolls the page to the selected element, so the element appears in the middle of the window. |
|
Select Option |
Adds a step in Desktop Automation robots that enables you to select a single option or multiple options from a menu:
|
|
Select in Dropdown |
Adds a step in Desktop Automation robots that selects options from either a menu or through a variable at runtime. Both the Select in Dropdown and Select Option steps can be mixed to manipulate a menu. These steps differ only in the method used to select the options from the menu.
The robot matches the available options in the following order:
|
| Upload as File |
Adds a step that allows you to upload a file to a web form without the file selection dialog or to upload the contents of a binary variable directly. This step uploads files from either a local file system or Robot File System (RFS). In Design Studio, to execute a robot that uses Robot File System, place your robot in the shared project.
|
|
Fill Form Field |
Adds a step in Desktop Automation robots to manipulate input elements in HTML forms. Use this step to control graphical elements that otherwise would require interactive manipulation (such as color pickers and volume sliders). If the element has a data list associated with it during design, the values from that data list appear in the list. These elements auto-complete without restricting input, such as a Select in Dropdown action does. Note that some elements, such as file uploads, are not supported by this action. |
Debugging with Developer Tools
Tungsten RPA supports debugging in the Chromium browser engine using Developer Tools. Thus, you can extract and save information required to analyze the interaction between the website and the browser and errors that occur during processing of web content. Information is saved in HTTP Archive (HAR) format. See also Start Developer Tools.
To save a log to a file, perform the following steps.
-
Open the browser using a Browse step.
-
Right-click the browser tab and select Start Developer Tools in the context menu.
-
In the Chrome DevTools window, select the Network tab, select Preserve log, and press Ctrl+R.
The network trace loads in the window.
-
Right-click the trace and select Save all as HAR with content to save the network trace in a file.
Now you can open the file in an HTTP Archive inspector.