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 / Find out the coordinat...
Power Automate
Unanswered

Find out the coordinate of all matched image from "Move mouse to image"

(1) ShareShare
ReportReport
Posted on by 4

Hello!


Below is a screenshot from an example webpage and I want to find out which color are selected

https://www.ironspider.ca/forms/checkradio.htm

mmm22222222_0-1720169995042.png
I know it can be done by "get details of element on webpage" but I wont prefer  because in my case I have 30+ checkbox
I think of using "move mouse to image" but it is not possible because it only return the coordinate for 1 image. My question will be is it possible to make a loop and return coordinate for all selected checkbox. Or any other suggested way to deal with the case?
Thanks!

 

 

I have the same question (0)
  • VishnuReddy1997 Profile Picture
    2,666 Super User 2026 Season 1 on at

    Hi @mmm22222222 ,

     

    You Focus window and create a window instance then use the below action to get names of Selected Check Boxes.

    VishnuReddy1997_0-1720171349745.png

     

    (Note:- if you got your solution you can mark as solution and gives kudos)


    Thanks & Regards

    Vishnu Reddy

     

  • mmm22222222 Profile Picture
    4 on at

    @VishnuReddy1997  But the checkbox is not in a group, is it mean I will need to do it one by one checkbox ?
    If yes then it will turn out the same time as get details of element on webpage

  • VishnuReddy1997 Profile Picture
    2,666 Super User 2026 Season 1 on at

    Hi @mmm22222222 ,

     

    As per my understanding If it is not in group, I think looping is the only method.

     

    (Note:- if you got your solution you can mark as solution and gives kudos)


    Thanks & Regards

    Vishnu Reddy

     

  • Deenuji_Loganathan_ Profile Picture
    6,255 Moderator on at

    @mmm22222222 

     

    If your checkboxes are not grouped and have a static element name or ID, you might consider checking them through JavaScript.

     

    In the example below, I first opened the checkbox website mentioned above, selected a few boxes, then attached it in launch browser and ran the JavaScript. It worked perfectly.

     

     

    Flow Code Screenshot:

    Deenuji_0-1720174220343.png

     

    Power Automate desktop code:

    WebAutomation.LaunchEdge.AttachToEdgeByTitle TabTitle: $'''Checkboxes & Radio Buttons''' AttachTimeout: 5 BrowserInstance=> Browser
    WebAutomation.ExecuteJavascript BrowserInstance: Browser Javascript: $'''function ExecuteScript() { 
    var checkboxes = document.querySelectorAll(\'input[name=\"color\"]:checked\');
     var selectedColors = [];
     checkboxes.forEach(function(checkbox) {
     selectedColors.push(checkbox.value);
     });
    
     alert(\"Selected colors: \" + selectedColors.join(\', \'));
    }''' Result=> Result

     

    How to copy/paste the above code into your power automate desktop?

    Deenuji_1-1720174294991.gif

     


    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 223

#2
David_MA Profile Picture

David_MA 210 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 175

Last 30 days Overall leaderboard