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 Trouble

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have tried for 2 days to get this button to press.  I've changed the selectors at least 15 times.  Can anyone offer any help?

Etignor1_0-1635913374611.png

 

I've tried to use "send keys" as a workaround but there's no way to do it as the button is never selected no matter how many times I press Tab.  One thing to note is that in my flow, the button is not seen until I send keys to page down.  I have a wait of 2 seconds after that is done and then "hit button".

  • VJR Profile Picture
    7,635 on at

    Hi @Etignor1 

     

    I've tried to use "send keys" as a workaround but there's no way to do it as the button is never selected no matter how many times I press Tab

    In some applications even if the control has the focus it is not visible to the eye. 

    So after that TAB try pressing ENTER via sendkeys. At first try it manually and then do it via PAD.

     

    Another option to check is: In your screenshot the button is calling the CreateJacket function on click.

    Try using the javascript action of PAD to invoke this function.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I have gone through the tabs as you suggested but the button is never available.

    Unfortunately, I do not know how to use the javascript function.  I know how to select it, I just don't know the language needed to be placed.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I have researched the javascript action in web function and I am positive I have the correct code but nothing is happening in my PAD flow.  I can pull up the website, hit F12, go to console, run the javascript and it works.  Just not in my flow.  The variable result shows as "undefined"

    Etignor1_0-1635997843750.png

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @MichaelAnnis   any suggestions?

     

  • VJR Profile Picture
    7,635 on at

    Hi @Etignor1 

     

    I was referring to calling the function directly instead of the click event.

    Remove the line of code you have written inside the function and mention as below.

     

    function ExecuteScript()

    {

    CreateJacket();

    }

     

    Give some Wait time in PAD before calling the javascript.

     

    Also, are you able to see the actual CreateJacket function inside the html code? Is it a javascript or a vbscript or how it is written exactly.

     

     

  • Verified answer
    MichaelAnnis Profile Picture
    5,727 Moderator on at

    None that are concrete, unfortunately. I am horrible at selectors and if the web recorder doesn’t work, I resort to Send Mouse to Image. 

    Is the button always in the same place on the bottom of the screen?  Are the screens always the same size?  If so, some combination of Send Keys {Control}({End}) could make sure you were at the bottom. Then you have options. 1) Send Mouse click to positional offset of another selector the does stay the same. Or 2) send mouse click to image. 

    Best of Luck!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I tried it and it still didn't work.  

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    The send mouse click to image worked.  I thought I had tried that in the past but I guess not.  

    So it seems that RPA is just a bunch of guessing until you figure it out.  There's no one way to do things, it changes all the time.  Am I right?

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    You learn a hierarchy of what is easier to set up than others.  That just comes with time.  Getting specific web elements will be the hardest thing you have to do.  Text fields usually work just fine as do buttons, links, and the like, but only if they don't change and it's actually html (unlike an underlying java or something that is **bleep** near impossible).  So, I usually try web recorder first, but if that doesn't work or breaks, I look for send keys options such as hotkeys or tabbing to what I need.  Last resort is Click on Image.

     

    Thank you for marking the solution.  Best of luck!

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
Mohsin Ali Profile Picture

Mohsin Ali 445

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 300

Last 30 days Overall leaderboard