I have a Browser1 with webpage 1 which has a link. When I click the link I navigate to Page 2 which also has a link. I want to use the Clink link on webpage action on this link which requires me to enter a Browser Instance. It seems like a chicken and egg situation. At what point/how do I define the browser instance.
When you use the Launch new {browser} action, there is a drop down inside the action properties to select whether you want to launch a new browser, or attach to an already running browser. It is set to launching a new one by default, but if you make it attach to an existing instance, you can use that to create a new %BrowserInstance% variable for the new tab. And yes, you can use Close browser to close a single browser tab, if you have that tab as a browser instance variable.
-------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.
I’m still having some trouble with this. The click on the first link in browser 1 tab 1 opens a new tab in the same chrome window. What I understand you are saying is to launch a new instance which I could call browser 2, but attach it to the running instance. If this is correct, can I then close browser 2 without also closing browser 1.
Your browser instance stays the same as long as you operate within the same browser tab, even if you navigate somewhere to a different URL. The browser instance does not store the URL in any way. It just stores an Id that allows PAD to target the specific tab, and that's it. Even if you navigated away manually to some other page while your flow was paused, it would still work under the same browser instance. So, you don't really need to do anything and simply provide the same browser instance in there.
That is, of course, unless the new page opens in a new tab/window. In that case you need to use the Launch new {browser} action but make it attach to an existing instance, instead of launching a new one.
-------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.
For the first web page you are opening
Use launch browser action
Then click on the link which you need
Again take launch browser use attech to running instance and this variable browser2 should be given to click the link on webpage
Hope this helps
Usha
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2