UiPath Attach Browser Activity

In this blog, we are going to discuss UiPath Attach Browser Activity. Here you can learn about this activity and how this activity actually works with a detailed example. Also, we have included a comparison of Attach Browser and Attach Window Activity, which is a confusing question for UiPath Learners.

Before going through this activity in detail, you should have a knowledge of the following UiPath topics:

What is UiPath Attach Browser Activity

UiPath Attach Browser Activity
UiPath Attach Browser Tab

From the name itself, you can understand what this activity is about, Attach Window Activity is one of the activities in UiPath Studio which are used to attach or select a browser application that is already opened on your system. This activity is automatically generated if you are using a “web recorder”.

This activity comes under the classic activities. So to use this activity in your studio you should enable classic activities.

This activity is used when you have to perform multiple automation on the website which required a browser to open. You can use this activity in web scraping, data entry, or form filling in different websites.

How to Use Attach Window in UiPath Studio

Now you can learn how to use this activity in your studio with examples for various applications as I mentioned earlier. Before using this activity you have to switch to classic activities. After switching or enabling classic activities you need to follow these steps:

  1. Open your UiPath Studio Application on your system and create a project.
  2. Then go to the “setting” tab, and click on the “Design” tab.
  3. In the design tab at the bottom you can see “Use Modern for new Project“, Turn this off. To do that you can refer, to how to enable classic activities in uipath.
UiPath Switch Classic and Modern Activities
  1. Now we will use attach window activity in your studio. To use, you will need a “sequence” activity. Drag and drop the sequence activity to use it.
  2. now to select this activity, on the search bar type “attach browser” and either drag and drop or double click into the sequence activity which have been added in the previous step.
UiPath Attach Browser Activity
UiPath Attach Browser Activity
  1. To select your browser click on “indicate browser on-screen“, then select the browser which you want to select. you can see a green area to select your browser. In the below image, I have selected the chrome browser.
UiPath Attach Window Selector - RPA Tutorials
  1. Once you have selected your browser you can run this process to set how it works. If you doing web scraping or some other automation you can proceed from here.

Comparison of UiPath Attach Browser Vs Attach Window

When you read these activities, you will feel both are the same but they are small differences between these two activities. Both Attach Browser and Attach Window are used for web automation. Now we compare UiPath Attach Browser vs Attach Window:

UiPath Attach BrowserUiPath Attach Window
This Attach Browser activity is mainly used for automating web browsers and web pagesThis Attach Window activity is mainly used for automating any window applications
Allow you to choose the specific web browser which you wish to automateIt does not allow you to choose the specific web browser which you wish to automate
It allows you to specify the URL of the web page you want to openSince attach window is not mainly focused on browsers you cannot specify the URL.
It is used in web browsers such as Chrome, Internet Explorer and FirefoxIt used in any window application

Properties of Attach Browser in UiPath

While using these activities, you may notice some properties of these activities shown on the right side of the studio. We will discuss each property in detail.

Package Used

In this activity the package used is :

UiPath.Core.Activities.BrowserScope

Input Properties

  • Selector: It is used to find a specific Ui element when it is executed, which means the selector allows you to select the browser element. It is an XML that lists the characteristics of the GUI element you’re seeking and a few of its parents.
  • BrowserType: This helps you to choose the browser which you want to select it may be Chrome, Firefox, Edge, or other browsers. It is also available for Custom browsers. We will explain these custom browsers after explaining the properties.
  • Browser: The current browser variable to which you want to attach the browser.
  • TimeoutMS: It specifies the time required to wait for an activity to run before an error occurs. The standard value is 30000 ms which is about 30 seconds.

Option Properties

  • SearchScope: It specifies the application window where the UI element specified by the Selector 

Output Properties

  • UiBrowser: It gives the browser available, which means the selected browser variables.

Common Properties

Some of the common properties available in these activities are::

  • DisplayName 
  • ContinueOnError 

Custom Browser in UiPath

Custom browser is completely different from commonly used browsers such as chrome, firefox, edge, etc. These custom browsers are built based on chromium projects. UiPath mainly supports two custom browsers such as:

  1. Browsers built with CEF (Chromium Embedded Framework)
  2. Browsers built with the JxBrowser framework

These custom browsers can be used in automating by using WebDriver in your Uipath Studio

UiPath Attach Browser Not Working

While using this activity, some users may face a uipath attach browser missing problem. This is mainly due to two reasons: either you have not enabled classic activities or the package is missing. Just follow these steps to fix this problem, you can refer to the Attach Browser not working fix.

Conclusion

So far we have discussed about this activity and how to use this activity in uipath with help of an example, also we solved the problems while using these activities. You can also check other activities in detail through our tutorial series.

Also check, UiPath Official.

Faq on UiPath Attach Browser Activity

What does attach browser do in Uipath?

To attach a browser in uipath you can use the “Attach Browser” activity in uipath studio. You can attach any one browser, in which you have installed the extension of Uipath.

How do I add a browser to Uipath?

To add a browser, you have to use browser activity which is available in UiPath studio. You can add browsers such as chrome, firefox, edge, and others browsers. You can also add a custom browser.

How do I open the browser activity in Uipath?

To open the browser you have to use the “Attach Browser” Activity in your uipath Studio. This activity allows you to select a browser in which you wish to automate your process.

Leave a Reply

Your email address will not be published. Required fields are marked *