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 / iframe with dropdown t...
Power Automate
Unanswered

iframe with dropdown to select with PAD automation

(0) ShareShare
ReportReport
Posted on by 78

Hi to all,

I am working on automating a zendesk ticket reply. Everything works fine, but there is an iframe with something like an external "app" integrated to this website and I have to choose the senders email adress to a default one.

SwiPowE_ch_1-1666014459312.png

 


In help section from MS it is recommended to navigate to the external website. I don't have a clue how this shall work.

Here is the HTML from the iframe (as far as I think it is it...at least there are some known components).

SwiPowE_ch_0-1666014272128.png

Moreover I tried to use UI Automation functions, which sometimes worked and sometimes not..

 

Can anybody help how to go on? I am clueless, only thing is use {Tab} to navigate to the control, but this seems not very reliable.

Thank you and best regards

 

SwiPowE 

  • VJR Profile Picture
    7,635 on at

    Since the Id of the dropdown is seen in the html code as email-address-selector, use it in Run javascript function on webpage.


    document.getElementById("email-address-selector").value = "bestellungen@email.com";

     

    I believe it is more of a single quote...
    document.getElementById("email-address-selector").value = 'bestellungen@email.com';

     

    OR
    document.getElementById("email-address-selector").selectedIndex = 1;
    Change the correct index number you want to select in the above line.

  • SwiPowE_ch Profile Picture
    78 on at

    Hi VJR

     

    thank you very much for your reply, I thought there must be a way to solve this problem I am not aware of...grateful!

     

    Problem is, that it is not working 😂:
    My Flow:

    SwiPowE_ch_0-1666078989723.png

     

    I wasn't sure about the exact syntax, so I tried different options, to be honest, I guess I tried all. I googled and found some other posts and answers from you. I tried with single and double quotations and with semikolon and without. I tried index version and I tried selecting the name value. Nothing worked, Website dropdown is unchanged and doesnt seem to get focused.

     

    Of course I just tried one command in an action, just entered it into the box for you to let you see my syntax.

     
    Using this syntax :

     

    function ExecuteScript() {document.getElementById("email-address-selector").value = "bestellungen.ch@lyreco.com"; }

     

    %Result% is "undefined".

     

    Using following syntax:

     

    document.getElementById("email-address-selector").value = "bestellungen.ch@lyreco.com";

     

    %Result% is blank.

     

    On the webpage nothing is happening.

     

    Any other ideas?

    Thank you and best regards

     

    SwiPowE

     

     




  • VJR Profile Picture
    7,635 on at

    Does the Recorder work? If so, use the Recorder to select any one item from the dropdown and then check the UI elements section to see if a UI element has been created for the dropdown.

    Then use Set dropdown list value on web page action.

  • SwiPowE_ch Profile Picture
    78 on at

    Hi VJR,
    No, thats the problem. The recorder doesn't work, sometimes, not always, the recorder is recognizing the iframe, but definitely not the dropdown.

     

    I tried to work with focussing an element (the button above) and navigate via send keys, but even this is not working properly.

     

    Any other ideas?

     

    Thank you !

  • VJR Profile Picture
    7,635 on at
  • VJR Profile Picture
    7,635 on at
  • SwiPowE_ch Profile Picture
    78 on at

    Thank you again,

    the sample flow is not working anymore. No examples extracted ... mmh, will go on..

  • SwiPowE_ch Profile Picture
    78 on at

    I guess this is the information important for me as I am not able to open the iframes source website.

     

    SwiPowE_ch_0-1666091677660.png

    I don't have a clue what to do with these variables...it looks very similar to your approach...

     

    aaaah, I want this to work somehow... 😉 ...


    Thank you for your support!

  • VJR Profile Picture
    7,635 on at

    The first line of code in that screenshot should contain the name of the iframe and the second line has the name of the element (dropdown, textbox, etc).

     

    On the other hand, have you tried the reverse tab, although I see you have mentioned about Tab.

    Meaning, see which one is the next control after manually pressing Tab on that dropdown.

    And then via PAD select that control and then press Shift Tab to go back to the dropdown.

     

    Yes Sendkeys are generally unreliable. But if nothing else works that is the go-to option. Keep trying with the other options and then come back to reverse tab.

  • SwiPowE_ch Profile Picture
    78 on at

    Hi VJR

     

    thank you for your help so far, really appreciated !

    I'll keep you posted if I am going to find a reliable solution...
    maybe with finding a picture or something ... I'll let you know.

     

    Best SwiPowE

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 227 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 213 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 151

Last 30 days Overall leaderboard