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

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,255 Moderator 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,255 Moderator 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,255 Moderator 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,255 Moderator 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,255 Moderator 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 785

#2
Valantis Profile Picture

Valantis 669

#3
Haque Profile Picture

Haque 563

Last 30 days Overall leaderboard