web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Web recorder button shift
Power Automate
Unanswered

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

 

I have the same question (0)
  • 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
    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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard