Hi! My automation needs to get into a private intranet to get information on our candidate to be a client of us. Each transaction, each client analysis, takes a lot of time because of the time of the webpages to load in the browser, not because there are a lot of actions to perform. So, it would be very interesting if I could open different Chrome browsers to run the same process in parallel for several clients at the same time. I am sure that I would save time dramatically. In fact, I have tried it using Python + Sellenium, because working with parallel proceses is posible with them, and I saved much time. Does anybody know if this can be done with UiPath now? I know that it has not been possible in the past, I was wondering if any new development had been introduced that would allow to work in this way, recently.
Yes, it is possible to open different Chrome browsers to run the same process in parallel for several clients at the same time in UiPath. This can be done using the Parallel activity.
The Parallel activity allows you to run multiple sequences in parallel. To use the Parallel activity, you would need to add it to your UiPath process and then specify the sequences that you want to run in parallel.
To open different Chrome browsers in parallel, you would need to use the Use Application/Browse activity within the Parallel activity. The Browse activity allows you to launch a web browser and navigate to a specific web page
A sample pseudo code
`Parallel
Sequence 1
Browse(webPageUrl: "https://www.example.com/")
End Sequence
Sequence 2
Browse(webPageUrl: "https://www.example.com/about")
End Sequence
End Parallel`
This process will open two Chrome browsers in parallel, one for each web page URL.
You can use the same approach to run the same process in parallel for several clients at the same time. To do this, you would need to iterate over a list of clients and then use the Parallel activity to open a Chrome browser for each client and run the process in parallel.
Thank you very much for your answer Palaniyappan, but I read in this forum time ago, that Parallel activity was only actionable to run activities that would not imply web automation. Has it changed lately or was I wrong in my understanding?
What you want to do is have multiple robots and/or servers so you can run multiple jobs at the same time. You can’t run multiple jobs on one robot/server at the same time.
One thing you can try is to use chromium api input type method…and use browser output variable to always interact so that interactions happen in background and parallely they can be worked
No, no, no, I want to run one robot but make it open different browsers to conduct a different candidate-search on each of them, so that I can analyse different clients at the same time, in parallel, being so much faster in my response to the global set of them.
Well u r right
But that depends on scenario
Especially parallel activity will not work reliably within multiple tabs with same browser
But multiple browser should work fine @rpa.cresmin
Thank you very much Anil. Do you have any info on this Chromium API? Have you ever tried something similar or do have you heard about somebody that has been succesuful in doing so? Thank you very much again.
Chromium api is the new input method which works completely in background…we tried with two differnet applications to click…it did work…type into and all we never tested…so can try and check the same…in use application/browser you will have option to choose the input method…
Hi Palaniyappan! In order to try your suggestion, all my web activities (clic, type into, etc.) should include the UI.name of the browser where I want them to be executed, right? I know how to get the name of the browser when I open a Use application/browser activity, but where do I introduce the name of the browser when I want to use those web activities (clic, type into, etc.)? I guess that in order to run parallel threads on several Chrome browsers, I will need to specify very clearly in which element inside which browser I want to clic or to type, etc., no?
Yes, that is correct. To run parallel threads on several Chrome browsers, you need to specify very clearly in which element inside which browser you want to click or type, etc.
To do this, you can use the UI Browser property of the web activities. The UI Browser property allows you to specify the browser that you want to use for the web activity.
With this you can ensure that your web activities are executed in the correct browser.
This is important when running parallel threads on several Chrome browsers.
Thank you very much for your quick answer. The point is that I do not see where to introduce the name of the browser in the web activities properties panel. Could you take an image of your screen and point to me the property where to introduce it in a “Type into” activity, for example.
It’s actually rhe parent scope like attach browser or use application browser activity
Not within activities in it
If u place the activity in that scope it will take the root Ui node from the parent scope
That’s what I mentioned here
I use three Use application/browser activities in parallel. Within each, I open a Chrome browser at url https://www.skyscanner.com, to buy flight tickets, and I type into the “From:”, “To:” and “Date” boxes their corresponding string values, and ask for clicking “Search”.
Very simple process, and it does not work, it send the error a mentioned before.