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 / Power automate desktop...
Power Automate
Suggested Answer

Power automate desktop - problem JavaScript on web site

(2) ShareShare
ReportReport
Posted on by 2
Hello,
I am trying to automate some interactions on a website. To do this I have prepared a javascript function that if inserted in the browser console gives me the result I want but if I try to automate it through PAD it does not return any results. The flow continues and at the top of the web page during the action "run javascript function on a web page" the following note appears for a few seconds "power automate is debugging the browser". How to solve?
Categories:
I have the same question (0)
  • Suggested answer
    trice602 Profile Picture
    15,875 Super User 2025 Season 2 on at
     
    The message is common and not an error but a message indicating a JS is running so you can expect this.  There's a ton of reason why this won't return any results and without seeing anything, it would all be guessing but the main root cause MAY BE that your script is running because the page is fully loaded.  Add a delay and wait for web page content (from the very bottom to appear).
     

    ------------------------------------------------

     

     

    ⭐ If this was helpful, please like and check the box below "Does this answer your question" to help others find this too!

     

     

    Always glad to help! 💯💯💯💯💯

     

    Tom

     

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

  • Suggested answer
    eetuRobo Profile Picture
    4,385 Super User 2025 Season 2 on at
    To add to 's suggestion.

    Make sure you have return() and not for example a console.log() since there is no console for you to look at. Result -variable does not get values if you have console.log but you need to return the value so the Result gets it and you can see it in that variable in PAD.

    Example where javascript takes the text from this pages first Quick Links which is Paul Stork - Community Spotlight and returns it to PAD Result variable:

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 392 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 270 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 210 Most Valuable Professional

Last 30 days Overall leaderboard