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 / 🛑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!

I have the same question (0)
  • Verified answer
    UshaJyothiKasibhotla Profile Picture
    203 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,327 Super User 2025 Season 2 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,204 Super User 2025 Season 2 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

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard