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 / Cannot find button error
Power Automate
Unanswered

Cannot find button error

(0) ShareShare
ReportReport
Posted on by 26

Hello.

I'm trying to input data from one Excel file to a database using power automated desktop. (I'm not new on it)

The flow is as follow:

- open the specific page on browser (Chrome)

- for each item number in Excel, search it on database searchfield

- open the page

- input corret price

- press "check" button

- press "save" button

Now I can do this flow only for the first item in my list, when the flow start with the second one, I get the error "can not find the button" (since I'm using a japanese version of PAD, I think that the error specification is differrent from the english one).

The problem seems due to the fact that each item has a different URL, consequently the button refer change every time (ie: the button reference for the first item is "form[Id="edit_product_4007"] > div[Class="bottom-button-area"] > input[Class="button-next btn"][Name="commit"]" , but it change in "form[Id="edit_product_4008"] > div[Class="bottom-button-area"] > input[Class="button-next btn"][Name="commit"]" for the second and so on).

Is there a solution to this error?

Thank you very much

 

  • OkanMTL Profile Picture
    703 Super User 2024 Season 1 on at

    If the button stays on the same position, have you tried send mouse click activities?

  • Pow3rAutomat3 Profile Picture
    26 on at

    Hi. Nope, didn't try. How can I do that?

  • OkanMTL Profile Picture
    703 Super User 2024 Season 1 on at

    "Move mouse" activity, its actually pretty easy. You can also try "move mouse to image activity". 

    Here is the documentation:https://learn.microsoft.com/en-us/power-automate/desktop-flows/actions-reference/mouseandkeyboard

     

    Good luck

  • momlo Profile Picture
    1,527 Super User 2024 Season 1 on at

    You need to make the selector dynamic by either removing the elements that change or using variables in the selector, see here (also you can search the forum as there are quite few topics on this particular matter):

    https://learn.microsoft.com/en-us/power-automate/desktop-flows/build-custom-selectors

     

     

    I would test with this selector after removing the form element "form[Id="edit_product_4008"]"

    div[Class="bottom-button-area"] > input[Class="button-next btn"][Name="commit"]" 

     

  • OkanMTL Profile Picture
    703 Super User 2024 Season 1 on at

    That is actually the better solution,

     

    But as he said he is not new, I think that didn't work already.

  • Pow3rAutomat3 Profile Picture
    26 on at

    Hi all,

    thank you very much for advices. I will try and write the result.

    @OkanAT "I'm not new" means that this is not the first time I use PAD ( I can build a workflow to fill a form or download data), but I'm not expert.

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 273 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 235

#3
David_MA Profile Picture

David_MA 172 Super User 2026 Season 2

Last 30 days Overall leaderboard