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 / Web recorder button shift
Power Automate
Answered

Web recorder button shift

(0) ShareShare
ReportReport
Posted on by 40

I created a flow that pulls rows from an excel doc and inputs them into a web search box and then proceeds to update user records. The sub-flow handles launching excel, Edge, and a URL etc. My main flow is a web recording that is in a For each loop. Everything works great for about ten rows of the excel doc then stops on a button press. The only thing I can see different is that the web button shifts a little bit thus it's in a different location. Would that cause it to not be able to find the button? If so how would I go about making it so it's not reliant on the location of the button?

jdehmlow_1-1605855801788.png

jdehmlow_0-1605855581175.png

 

  • jdehmlow Profile Picture
    40 on at

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

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    It would help if you could share PAD attributes of the Button element you are failing to press. If you double click the element in the Element explorer you should be able to see the CSS element selector (long gibberish of keywords like Window, etc. and given parameters). If you double click further it should give you the same in a tree-view, which is easier for debugging.

  • jdehmlow Profile Picture
    40 on at

    Oops

  • jdehmlow Profile Picture
    40 on at

    I'm not sure if I'm following but here is the button element from the browser inspector:

    <button id="qa-partner-attributes-list-partner-attributes-new-attribute-btn" class="button is-primary">New Attribute</button>

    Here is what is shown in the Selector builder:
    html > body > div > div:eq(4) > div:eq(1) > div:eq(2) > div > div > div:eq(3) > div:eq(1) > div:eq(6) > div > div > div:eq(0) > div > button

     

    Is there are a way to use that to "Hard code" it?

  • PetrosF-MSFT Profile Picture
    Microsoft Employee on at

    @jdehmlow 

     

    Through the Selector builder window, you can edit the auto-generated selector:

    PetrosF-MSFT_0-1606484655777.png

     

  • jdehmlow Profile Picture
    40 on at

    I don't know how you are getting to the screenshot you provided. The only way I can seem to find selectors is through the UI elements. Then I edit the recordings and find it that way but I don't see all of the options you have. How are you getting to that page. Also when I get to that page what am I editing to fix the issue?

    New_Attribute2.jpg

  • Verified answer
    jdehmlow Profile Picture
    40 on at

    I think I figured it out. It looks like the screenshot you showed as to the selector builder is for web elements and not web recordings. The solution I found was to view the web inspector and see what the name of that web element was. I then formatted the UI element value as such: value[Id="name-of-element"]. All you have to do is change the value to whatever type of element you are working with input, button etc. Then input the name of the element. Thank for all your help @Anonymous and @PetrosF-MSFT 

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 315 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 267

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard