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 / How can I click img(bu...
Power Automate
Unanswered

How can I click img(button)?

(0) ShareShare
ReportReport
Posted on by 54

Hi, can someone please help me to click this button? Once clicked, a file will be downloaded and will be saved to downloads folder.

 

mjbaylon_0-1716184703228.png

 

mjbaylon_0-1716184874791.png

 

 

I have the same question (0)
  • Deenuji_Loganathan_ Profile Picture
    6,250 Super User 2025 Season 2 on at

    @mjbaylon 

     

    Is that image button is constant? Or you want to click all the button which presents inside the table?

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • mjbaylon Profile Picture
    54 on at

    hi, yes I need to click two buttons inside the table.

     

    Shanghai and CHinaHQ

     

    mjbaylon_0-1716185172690.png

     

  • Deenuji_Loganathan_ Profile Picture
    6,250 Super User 2025 Season 2 on at

    @mjbaylon 

    Again you can use javascript and click on the appropriate images:

     

    Deenuji_0-1716185762092.png

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • Deenuji_Loganathan_ Profile Picture
    6,250 Super User 2025 Season 2 on at

    @mjbaylon 

     

    You have the flexibility to modify the name of the image element according to the button you wish to activate.

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • mjbaylon Profile Picture
    54 on at

    Hi Deenuji, have tried the same code but it's not working and it is not downloading the file.

  • Verified answer
    Deenuji_Loganathan_ Profile Picture
    6,250 Super User 2025 Season 2 on at

    @mjbaylon 

     

    Try the below code:

     

    function ExecuteScript() { 
    document.getElementsByName("ImgAll16")[0].click();
    }

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • Deenuji_Loganathan_ Profile Picture
    6,250 Super User 2025 Season 2 on at

    @mjbaylon 

     

    Another approach would be use "click link on webpage". 

    Drag and drop the below option and click on the UI element dropdown and click "add UI element" 

    Deenuji_0-1716186849572.png

     

    Then i will open live helper in the corresponding webpage.

    Select your download button there. Once saved your flow and try to execute it will click on the button and your file would be downloaded automatcially.

    Deenuji_1-1716186918480.png

     

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard