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 / Java Application (java...
Power Automate
Unanswered

Java Application (javaw), wait for window - close

(0) ShareShare
ReportReport
Posted on by 2

Hello community!

 

I am working with a Java based program and I am to a spot where a window pops up and once it's done doing what it needs to do the window automatically closes. Performing a "Wait for window" to open works. I am also then able to "Get details of the UI element in window" and grab some text from that window. However the next step is "Wait for window" to close and the flow just sits there. I would love to find a way to capture the closing of the window because this signifies a successful operation and if I add in a time out to this step then I have a possibility of corrupting data.

 

Thinking that the window title or something is being changed I the UI element Name to "Contains" and then removed most of the information to make it more easily matched. Since I'm new to the scene; is there any other tricks I might be able to try to detect when the window closes?

 

I am going to try and do a loop on Get details of the UI element and see if maybe it will error out; but I'm open to suggestions!

 

CraigI_1-1712858977209.png

 

CraigI_0-1712858905996.png

 

Thank you

 

 

 

I have the same question (0)
  • CraigI Profile Picture
    2 on at

    Looks like I may have already have a winner. I created a variable called "JustKeepLooping" and have that set to true. Then I create a Loop Condition that continues while JustKeepLooping is set to True. There are then two different checks I am doing.

     

    • First Check: Get details of UI element in window on error set the JustKeepLooping var to False.
    • Second Check: If Condition where the WindowCheckedState (set from the get details of UI element) is empty then it sets the JustKeepLooping to False.

    The first check on error condition was not set and the flow error out which is why I added it.

     

     

    CraigI_0-1712861003449.png

    CraigI_1-1712861021086.png

     

     

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard