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 / 🛑Detect Console Error...
Power Automate
Answered

🛑Detect Console Error and Send Email Notification.

(0) ShareShare
ReportReport
Posted on by 116

Hi everyone,
 

I'm automating a web page using Power Automate Desktop. After clicking the Data Display button, the data doesn't load as expected. When I open the browser console (F12), I see a red cross ❌ indicating a JavaScript error (screenshot attached).

I would like to automate the detection of this error — specifically, when this red cross appears in the console — and send an email notification.

Is there a way in Power Automate Desktop to:

  • Detect this kind of browser console error?
  • Trigger an email when this error appears?
 

Any advice or alternative methods (such as detecting that no data is displayed, or reading from the console logs if possible) would be greatly appreciated!

Thanks!

Screenshot 2025-07-31 122114.png
I have the same question (0)
  • Verified answer
    UshaJyothiKasibhotla Profile Picture
    225 Moderator on at
     
    Use "Wait for web element", "Get details of web element", or "If web element exists" actions to check if:
    the element with cross mark exist
    if exist then use send email action.
     
    If you want to send the email notification when there is no data then
    Use extract data from web page 
    if the output is empty then send email.
     
    Please let me know if you face any challenge.
     
    Hope this helps,
    Usha Jyothi,
  • CU12050101-0 Profile Picture
    116 on at

    Thanks for the suggestion! @UshaJyothiKasibhotla

    I actually tried using "Get details of web element" and "If web element exists", but when I attempted to add the UI element, it wouldn't let me select anything inside the browser console (F12). It could detect and highlight elements on the main web page just fine, but not anything inside the console tab, including the red ❌ error indicator.

    It seems like Power Automate Desktop can't interact with the browser's developer tools UI. 

  • Verified answer
    Srini007 Profile Picture
    3,463 Super User 2026 Season 1 on at
     
    Maybe you try other way around, so select a element if the data is available, maybe the first row of the Data, so if that is not available then it will throw the exception. you make that to handle
     
    Hope this may help you
     
     

    (If this answers your question you can mark as Answered and give it a Like)

    Regards,
    Srini
  • Verified answer
    eetuRobo Profile Picture
    4,495 Super User 2026 Season 1 on at

    It seems like Power Automate Desktop can't interact with the browser's developer tools UI. 

    That's because the Developer tools UI is not part of the web site but part of the browsers UI. So if you want the flow to interact with the console you need to use UI Automation -actions

    Use "Extract data from window" -action and capture the console section


    Then you can have everything inside the console in DataFromWindow -variable and build logic around if certain error appears in it.



    Or you can just have  "If window contains" -condition action that checks if that console element contains the error text

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 630

#2
Valantis Profile Picture

Valantis 420

#3
11manish Profile Picture

11manish 350

Last 30 days Overall leaderboard