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 / Button-press failed. B...
Power Automate
Unanswered

Button-press failed. Button click failed in Power Automate desktop

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

I have used Action : Press button on web page. But it is not working for MS forms

Rida_0-1607158001121.png

 

I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Anonymous, 

    Are you using 2 screens while developing RPA? If yes, I noticed PowerAutomate desktop having issues picking up elements from Screen 2. Make sure you open the browser in screen 1 and try to pick element from there. Hopefully this should fix your issue. 

     

    Thanks

  • JD_ReGen Profile Picture
    5 on at

    I am having the same issue, tried the single screen approach as suggested but still did not work. Have also tried moving mouse to image and clicking but no success here either. Any help much appreciated.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @JD_ReGen When you hover your mouse over the element. Are you seeing red color container around the element?

  • JD_ReGen Profile Picture
    5 on at

    Hi @Anonymous yes I am seeing that container , I wonder if the issue is specific to Microsoft Forms? I can click buttons on other websites such as Facebook. I have also noticed I can select two types of UI element, if I click along the bottom edge of the submit button I get type "button", if I choose the centre I get type "div", neither of these have worked. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @JD_ReGen ,

     

    • From the right side menu click on UI Elements
    • Double click on element it will open a small container
    • Again double click on that element. It should open Selector builder
    • Uncheck the Name attribute if its checked.
    • Most of the item it should fix the issue.
    • If that didn't work, pick element one more item.

    Hopefully it will work 🙂

     

    sakula1996_0-1608049736649.png

     

    sakula1996_1-1608049905721.png

     

     

  • ArchitectMadhan Profile Picture
    1,584 on at

    This issue i have faced while using the MS Forms and Power Automate Desktop for filling the form. The work around for this issue is to use the "Send Keys" {Tab}{Return} from the last control (text box or any other control). It worked for me. Please follow the steps given in the below link.

     

    Fix for microsoft forms button click called from Power Automate Desktop

     

    Please accept this solution, If it works for you.

  • Riyaz_riz11 Profile Picture
    4,150 Super User 2026 Season 1 on at

    Hi @ArchitectMadhan 

     

    I think u can use mouse move or if image nd inside send mouse click u can use 

     

    Thanks

    Ahammad Riyaz 

  • ArchitectMadhan Profile Picture
    1,584 on at

    Hi @Ahammad_Riyaz ,

     

    Trying out with mouse move is bit complicated because based on the screen size and resolution. I don't think it will work properly, more over the button click would be doing the same. May be we need to set the offset X and Y before the mouse click. So I tried with "Send Keys" and it worked. Anyways, thanks for sharing your thought.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @JD_ReGen 

    I ran a test on Microsoft Forms to get to your error (Object reference not set to an instance of an object).

    In 'Press button on web page' action, captured a button in a form which gave me '<div> 'button-content'' as the object to click, similar to yours.

    The button you're trying to click has a unique title/caption? If so, then in the Selector Builder of the element select only the option that contains Title = (title of your button), and uncheck all others, as in the example below:

    yasunm02_0-1625092878371.png

    Doing this I was able to click button sucessfully. Check if this solution applies to your case.😉

  • ShaishavM Profile Picture
    13 on at

    Worked like a charm 🙂

    Thanks @ArchitectMadhan!!

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 1,027

#2
Valantis Profile Picture

Valantis 815

#3
Haque Profile Picture

Haque 630

Last 30 days Overall leaderboard