I recently came across this video by Jeppe on the Picture in Picture that I didn’t even knew existed, and I think it’s pretty awesome.
I developed a tiny automation just to try it out that involves the following steps:
Opening Chrome
Navigating to a given URL
And downloading a file
Pretty straightforward stuff.
This works without any issue when I run it normally, but when I toggle it to PIP, the program throws an error informing me that it is unable to communicate with the browser in the special environment that the PIP operates in.
I think the program is not able to communicate with the separate session that opens for PIP.
Not sure why this is happening.
I hope someone has a solution for this, Thanks in advance!
For the first run, when it opens PIP try to enable Ui extension in it. It is a one-time job. For the later run, it works seamlessly as expected. Please refer to the screenshot below…
My bot works fine but when I run it in the PiP mode I received the same error.
I first opened Chrome in the PiP mode and enabled the UiPath extension. Not sure if this helped because I still got the error.
I went to the “Use Browser” activity (“Open Browser” if you use classic) and went to the “options-browser” (“options”) in the properties window and there is a “User data folder mode” I changed the drop down to “DefaultFolder” and then my bot worked in PiP mode.