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

Community site session details

Session Id : P1b0s9fiCj3mNNVZ4OuNzJ
Power Automate - Power Automate Desktop
Unanswered

Close Browser getting stuck Firefox

Like (0) ShareShare
ReportReport
Posted on 22 Jan 2024 09:21:05 by 11

Hello,

I have just updated Firefox, PA Extension and PAD, and for some reason, each time I have a "Close Web Browser" action, the action itself is done imediatly but the code gets struck on it for like 20 seconds and moves to next action.

 

Anyone else has this issue?

  • Archy Profile Picture
    83 on 25 Mar 2024 at 13:36:45
    Re: Close Browser getting stuck Firefox

    u can use a workaround with a powershell action:

    Stop-Process -Name "firefox" -Force

    or if u want a little more control:

    # Check if Firefox is running
    $firefoxProcess = Get-Process -Name "firefox" -ErrorAction SilentlyContinue
    
    if ($firefoxProcess) {
     # Firefox is running, so close it
     Stop-Process -Name "firefox" -Force
     Write-Host "Firefox has been closed."
    } else {
     # Firefox is not running
     Write-Host "Firefox is not running."
    }

     

    hope it helps 😊

  • PIXOT Profile Picture
    11 on 25 Mar 2024 at 08:16:09
    Re: Close Browser getting stuck Firefox

    It is really weird. The code works fine on my Dev laptop, but has this annoying bug when running on Azure. What worked for me in the past was just to downgrade it, but now I had to do some code updates, and here goes again the same issue.

    Personal advise, do not use the Close Browser, just taskill it or click on UI (x button). This will never fail you.

    Best regards,

    Florin 

  • Community Power Platform Member Profile Picture
    on 25 Mar 2024 at 01:21:49
    Re: Close Browser getting stuck Firefox

    Hello, @PIXOT .

    Has it been resolved?

    I had the same issue in Firefox, but it was fixed with an update? I have no problem.

    Now, on a different PC, it takes 20seconds - one minute for the browser to close in Chrome.

     

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 complete