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 : QCE4l+3zeGZToaZBDO9F3J
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?

I have the same question (0)
  • 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 725 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 363 Moderator

#3
Power Apps 1919 Profile Picture

Power Apps 1919 341

Last 30 days Overall leaderboard
Loading complete