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 / [Urgent request] Peopl...
Power Automate
Unanswered

[Urgent request] People please help me about select item from dropdowns, fill to day date, click button on "a pop up screen"

(0) ShareShare
ReportReport
Posted on by 12

Please help me i cant create step or click ui from a pop up screen
i will elaborate you

1) click export data oln website DENSO : Factory Energy Management System - SETTING List

_qqneed_uall_1-1697183346108.png

2)this screen will pop up

_qqneed_uall_2-1697183437039.png

3)because the screen pop up  i cant select ui

4)i want to select item from dropdowns list eg. hvac1, hvac2 ,...,...

_qqneed_uall_3-1697183509239.png

5)type today date on this box

_qqneed_uall_4-1697183559207.png

6)and click this button 

_qqneed_uall_5-1697183639013.png

 Please help me i am black out now

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Since this is a browser interface, make sure you use the Browser actions to interact with it:

    Agnius_0-1697186618213.png

     

    I've tried it and it works perfectly fine for me.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • _qqneed_uall Profile Picture
    12 on at

    at the 2nd step (pop up screen) it is "document.querySelector("#cboxLoadedContent > iframe")", the dropdown line name is <select name="denso_line_id" id="denso_line_id" and i gonna die now because nmy javascript it wont work

     

  • _qqneed_uall Profile Picture
    12 on at

    here is my javascript 

    function ExecuteScript() {
        document.querySelector('input[value="Export Data"]').click();
        setTimeout(function() {
            var iframe = document.querySelector("#cboxLoadedContent > iframe");
            iframe.addEventListener("load", function() {
                var today = new Date();
                var yesterday = new Date(today);
                yesterday.setDate(today.getDate() - 1);
                var year = yesterday.getFullYear();
                var month = (yesterday.getMonth() + 1).toString().padStart(2, '0');
                var day = yesterday.getDate().toString().padStart(2, '0');
                var formattedDate = year + '-' + month + '-' + day;
                iframe.contentDocument.querySelector('#datetimepicker_dark').value = formattedDate;
            });
        }, 5000);
    }

                var dropdown = iframe.contentDocument.querySelector('select[name="denso_line_id"]');
                for (var i = 0; i < dropdown.options.length; i++) {
                    if (dropdown.options[i].value === "2") {
                        dropdown.selectedIndex = i;
                        break;
                    }
                }
            });
        }, 5000);
    }

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Why exactly are you using JavaScript here? Can't you use Set drop-down list value in web page for the drop-down and Populate text field on web page for the input fields?

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • Srini007 Profile Picture
    3,490 Super User 2026 Season 1 on at

    Hi @_qqneed_uall 

     

    As @Agnius said it's not required to have the javascript here, by the action available in the Power automate Desktop -> browser automation itself you can automate

     

    1. Use Launch chrome action to open the url

    2. Use Click link on WebPage to click on Export Data

    3. Set drop-down list value in web page to select the Options

    4. You can use Populate text field on webpage

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Thanks,

    Srini

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 432

#2
11manish Profile Picture

11manish 313 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 154

Last 30 days Overall leaderboard