web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Return to main browser...
Power Automate
Answered

Return to main browser after popup

(0) ShareShare
ReportReport
Posted on by 17

Hi all,

 

I am having trouble with two parts of my web automation flow.

  1. Each time I click on "cap accounting budget" a pop up window displays the data I am need to gather. the pop up window website is the same minus the project number at the end. 
  2. The location of the budget element is in the same place for each project but the value differs.
  3. After closing the pop up, I need to return to the main browser in order to start the cycle again.

Is there a way to account for the pop-up that has different web addresses but follows the same process each time? How do I capture the budget element? I wanted to try 'capture based on text' and then 'contains' but I don't know to write that it should select any value that is within that data table cell. When I tried to close the pop-up to click back onto the main website, it worked for the first iteration but not the second.

helpmeautomate_0-1699323350994.png

 

In the image below, 1. is the hyperlink I click on, 2. is the pop-up with the information I'm looking for, and 3. is the hyperlink I need to click to get back to the main search screen.

helpmeautomate_1-1699324395715.png

 

I have the same question (0)
  • UshaJyothiKasibhotla Profile Picture
    225 Moderator on at

    As far as I understood when a pop-up opens it opens in a new browser with another URL, right?

    and the URL may be dynamic

    I have faced the same issue 

    The URL value may contain one value which will be dynamically stored that value into a variable and pass into the new URL give this in launch the new Microsoft browser Edge.

    For example see the image

    UshaJyothi20_0-1699332544934.png

    in this image coin number is my variable that I have passed into the url

    Hope this helps

    Usha.

     

  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    You need to use Launch new Chrome but make it attach to an already existing window instead of launching a new one. This way you can attach to the pop-up and interact with it. Make sure you save this browser instance as a different variable. This way you will keep the main window as the original %Browser% variable and will be able to continue working with it after closing the pop-up, without the need to attach to it again.

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

  • helpmeautomate Profile Picture
    17 on at

    @Agnius wrote:

    You need to use Launch new Chrome but make it attach to an already existing window instead of launching a new one. This way you can attach to the pop-up and interact with it. Make sure you save this browser instance as a different variable. This way you will keep the main window as the original %Browser% variable and will be able to continue working with it after closing the pop-up, without the need to attach to it again.

     


    You've done it again! Thank you!

     

    Updated flow. I could probably get rid of the "click link on web page' click on body 'overview...' since it's the same web page as the click on link below but it's working for now so I'll leave it.

    Snag_1878a11e.png

     

    This is the launch chrome for the pop-up

    Snag_1878c1b5.png

     

    this is the launch chrome to return to the main page.

    Snag_1878df6f.png

  • helpmeautomate Profile Picture
    17 on at

    Hi Usha,

     

    Thank you for your suggestion. I don't know how to pass a variable into a URL but the bot was able to pick up the text I was looking for each time.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 253 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 172 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 134 Super User 2026 Season 2

Last 30 days Overall leaderboard