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 Automate
Answered

Button Press Failed

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I'm trying to shorten my links using cutt.ly automatically. While text filling works fine, button pressing to actually shorten it does not, I keep getting the error:

 

Robin.Core.ActionException: Button-press failed. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Robin.Modules.WebAutomation.Actions.WebAutomationRuntime.PressButtonOnWebPage(WebBrowserInstanceVariant webBrowserInstanceVariant, TextVariant cssSelectorOfButtonToPress, Boolean waitForPageToLoad, TextVariant dialogButtonToPress, WebPageCourseOfActionIfDialogAppearsEnum courseOfActionIfDialogAppears)
at Robin.Modules.WebAutomation.Actions.WebAutomationActions.PressButtonOnWebPage(Variant webBrowserInstance, Variant cssSelectorOfButtonToPress, Variant dialogButtonToPress, Boolean waitForPageToLoad, Int32 courseOfActionIfDialogAppears)
--- End of inner exception stack trace ---
at Robin.Modules.WebAutomation.Actions.PressButtonBase.Execute(ActionContext context)
at Robin.Runtime.Engine.ActionRunner.RunAction(String action, Dictionary`2 inputArguments, Dictionary`2 outputArguments, IActionStatement statement)

 

I've tried both unclicking everything except the button attribute, as well as just keeping it as is. Here's the website https://cutt.ly/ for anyone that wants to try.

 

Here are my UI elements:

 

Hana_Ali_20001_0-1625767749388.png

 

Hana_Ali_20001_1-1625767796785.png

Any help is appreciated.

  • Verified answer
    tkuehara Profile Picture
    667 on at

    Hi @Anonymous 

     

    Try changing your selector to button:contains(Shorten):

    tkuehara_0-1625771387195.png

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello,

     

    How would I do that? When I click on the button in the Selector Builder, it doesn't let me type in.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Figured it out. It worked!! You have no idea how much time you've just saved me!!

  • tkuehara Profile Picture
    667 on at

    Glad to help, buddy!

  • SynergiPartners Profile Picture
    30 on at

    Hi! I am having an issue with the "Press button on web page" as well. The activity works as expected; however, it doesn't think it worked. The process fails at this point after performing the action. When the button is pressed, a pop up or pop over is displayed. I've tried every option in the Advanced options section to deal with this window. The process is being performed in Google Chrome, if that helps. I've also tried "Click Link on Web Page" as well. Thank you in advance for your assistance!

     

    SynergiPartners_0-1644854539854.png

     

     

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

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 132

Last 30 days Overall leaderboard