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 / RPA Web Automation Flo...
Power Automate
Answered

RPA Web Automation Flow...Press Button on Webpage

(0) ShareShare
ReportReport
Posted on by 409

I am just getting started with RPA flows to interact with web apps..in this case Dynamics 365.

It seems the Button I am trying to press in a loop changes its reference...sometimes says 'a...d10-button' and then 'a...d12-button'...so it fails after the first loop.

 

Can anyone tell me where I am going wrong?

 

Capture.PNG

I have the same question (0)
  • Verified answer
    GanCW Profile Picture
    237 on at

    How about using 'Move Mouse to Image' action to move the mouse to the button and click on the button instead.

  • Verified answer
    BTJC99 Profile Picture
    23 on at

    Try inspecting the button in your browser through developer tools. Find the unique ID for the button and then you could run a javascript action to click the button:

    function myFunction() {
      document.getElementById("insertButtonIDHere").click(); // Click on the button
    }

  • Verified answer
    ghdunn Profile Picture
    409 on at

    thanks @BTJC99 

    i think i have matched your instructions, and it runs successfully, but it doesn't seem to click the button. am i missing something?

    Capture2.PNGCapture.PNGn:

  • ghdunn Profile Picture
    409 on at

    thanks @GanCW   I am not sure if i am using the wrong setting, but the 'capture image' seems to select only a single pixel?

     

    Capture3.PNGCapture4.PNG

  • GanCW Profile Picture
    237 on at

    You should click and drag to select an area

  • ghdunn Profile Picture
    409 on at

    @GanCW Great...thanks... Tell me, is this covered in any documentation or do you know perhaps because of Selenium knowledge?

  • ghdunn Profile Picture
    409 on at

    Hi @BTJC99.    @GanCW has given me one fix for this, but i am keen on understanding the function solution as well.  Have you any idea why my config isn't working?

  • BTJC99 Profile Picture
    23 on at

    Looks like the id specified for the button is incorrect. As an example, go to https://www.w3schools.com/

    Then, inspect the "Log In" button on the top right (F12 in google chrome or Edge)

    Capture2.PNG

    Then, look for the attribute called "id" as seen in screenshot below: 

    Capture1.PNG

    So in this case the corresponding javascript would be:

    function myFunction() {
      document.getElementById("w3loginbtn").click(); // Click on the Sign In button
    }

  • GanCW Profile Picture
    237 on at

    Oops wrong thread..

  • GanCW Profile Picture
    237 on at

    @ghdunn wrote:

    @GanCW Great...thanks... Tell me, is this covered in any documentation or do you know perhaps because of Selenium knowledge?

     


    Please read the PAD documentation, specifically the Actions reference.

    Mouse and keyboard - Power Automate | Microsoft Docs

     

    There are lots of useful information on the documentation

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 959

#2
Valantis Profile Picture

Valantis 872

#3
Haque Profile Picture

Haque 589

Last 30 days Overall leaderboard