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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Referencing a popup br...
Power Automate
Unanswered

Referencing a popup browser window - Stuck!

(0) ShareShare
ReportReport
Posted on by 112

Hi all, 

 

Background:

I've got a desktop flow that runs through a "Select Customer -> Click some buttons on various screens" in our web-based CRM. It works very well barring specific instances where a warning on the screen means the button to be clicked is actually off the screen in some (very few) instances. 

To try and handle these within the flow, (rather than skip them and manually fix at the end, which is what I have been doing) I figured I'd add a nice simple subflow to call on error that runs a JS function on webpage (Scrolldown) and then repeat the "Move mouse to text on screen" action. 

 

Issue: 

"The Run JavaScript function on web page" action requires me to specify the browser instance as a parameter. The problem is, it's a popup window from the original browser instance that I'm interacting with, and I can't see a way to specify this. Screenshot below should hopefully help explain. 

SimonSmith84_0-1665745273572.png

 

Previously I've not had to refer back to the browser instance, as all the following steps are played out in the 'active window' (the popup). Now I'm having to perform the on-error action however, I need to be able to reference this popup window, and I can't see how to do that. 

 

Any help/advice would be hugely apprec

 

 

 

I have the same question (0)
  • Verified answer
    Jamar_Forsythe Profile Picture
    Microsoft Employee on at

    Use the "Launch New Microsoft Edge" (or your browser of choice) then set it to "Attach to running instance", then choose what method to use to find the browser. I prefer matching by title for an example like this. Also, you only need part of the tab/window name as it will match with the one "closest" to it (think auto complete or starts with or wildcard at the end), you can even use variables here.

    Jamar_Forsythe_0-1665790090856.png

    This will give you a browser handle that you can use to close that popup window or tab

  • SimonSmith84 Profile Picture
    112 on at

    Thanks Jamar. I figured a workaround for my specific issue this time, but this is definitely useful to know for the future!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard