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 / Problem trying to scro...
Power Automate
Unanswered

Problem trying to scroll to Button at bottom of page

(0) ShareShare
ReportReport
Posted on by 431

 

I am trying to click a Submit button with no id so am using Action Move Mouse to Text On Screen. The problem I am having is the button is "pushed" offscreen or mostly offscreen sometimes because the content above it on the page gets taller in some iterations of a loop . In this case, I get an error: couldn't find text. I tried both of the following javascript functions, but neither caused scrolling down. Why isn't the javascript working? Or is there a better way to do it.

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

function ExecuteScript()
{
window.scroll(0,700);
}

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

function ExecuteScript()
{
window.scrollTo(0, document.body.scrollHeight);

I have the same question (0)
  • Steve48 Profile Picture
    431 on at

    Second function does have ending "]"

    function ExecuteScript()
    {
    window.scrollTo(0, document.body.scrollHeight);

    }

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Which JavaScript action are you using? Are you simply running a JavaScript, or are you executing a JavaScript function on a web page?

     

    Also, have you tried using Send keys to send a PageDown click?

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

    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

     

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • Steve48 Profile Picture
    431 on at

    Hi Agnius,

    Thanks for responding. I tried send keys. It didnt work. Here is a screenshot of my javascript action.

    Should I try an actual script? I don't know why it doesn't work. I think I have a workaround. I found that if I tab a specific number of times I will get to the submit button. O Error I can go to a subflow which will do the tabbing. That may work but I would like to get the scroll working

    Steve48_0-1694101594665.png

     

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Have you tried using Execute JavaScript function on web page instead?

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

    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

     

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • Steve48 Profile Picture
    431 on at

    I tried Run Javascript Function on Web Page but it didn't cause a scroll. I have a workaround that is a a loop of 20 tabs before I move the mouse. This gets the submit button to appear. I don't like this solution but I will use it until I figure out how to scroll.

    Steve48_0-1694105219687.png

     

  • Rajanikanth Profile Picture
    4 on at

    Same problem unable to scroll down.

    proper scrolling not happening. very less pixels it scrolled down.

    function ExecuteScript() { /*your code here, return something (optionally); */ 
    window.scrollTo(0, 1800);
    });

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard