Skip to main content
Community site session details

Community site session details

Session Id : 6FREBixdQkogLdgXVNT18J
Power Automate - Power Automate Desktop
Answered

How to instantiate Browser when going to new page in response to click

Like (0) ShareShare
ReportReport
Posted on 29 Oct 2023 21:39:58 by 431

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.

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on 01 Nov 2023 at 05:11:10
    Re: How to instantiate Browser when going to new page in response to click

    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.

    Agnius_0-1698815463945.png

     

    -------------------------------------------------------------------------
    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.

  • Steve48 Profile Picture
    431 on 31 Oct 2023 at 16:53:51
    Re: How to instantiate Browser when going to new page in response to click

    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. 

  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on 30 Oct 2023 at 04:23:54
    Re: How to instantiate Browser when going to new page in response to click

    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.

  • UshaJyothiKasibhotla Profile Picture
    28 Moderator on 30 Oct 2023 at 04:03:44
    Re: How to instantiate Browser when going to new page in response to click

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading started
Loading complete