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 / Selector cannot be fou...
Power Automate
Answered

Selector cannot be found in Web Automation

(0) ShareShare
ReportReport
Posted on by 3

Hey Guys, 

I'm trying to automatically fill in a web form from an excel using PAD. I want to copy the content of an excel cell into the search bar of a select2 field in the web form and then confirm the search by using the "return" Button. Somehow PAD cant find the selector of the dropdown list to copy the text in, even though I added the UI Element as follows: 

Billotet_0-1652711267970.png

The selector is defined as follows: 

div[Id="formHolder"] > div[Class="foswikiTopic"] > div > div[Class="content"] > div[Class="blocks-container grid-container"] > div[Class="blocks grid-x grid-margin-x"] > div[Class="block cell"]:eq(3) > div[Class="wfapp-block-content block-content-Edit"] > div[Class="wfapp-columns grid-x grid-margin-x"] > div[Class="wfapp-block-column-wrapper cell large-4"]:eq(2) > div[Class="wfapp-column wfapp-block-column"] > div[Class="wfapp-field"] > div[Class="grid-x align-middle wfapp-field-content"] > div[Class="cell auto field-select"] > span[Class="select2 select2-container select2-container--default select2-container--below"] > span[Class="selection"] > span[Class="select2-selection select2-selection--multiple"] > ul[Class="select2-selection__rendered"] > li[Class="select2-search select2-search--inline"] > input[Class="select2-search__field"]

 

Does anybody has a solutions for me why i can't fill in the searchbar of this field with the copied excel Element? I always get the error "Selector could not be found"

 

Thanks in advance

 

  • Verified answer
    VJR Profile Picture
    7,635 on at

    What happens when you uncheck all the other attributes from the selector window and just keep 

     input[Class="select2-search__field"]

    Should work, but if it doesn't then right click on that dropdown and Inspect element. See for more specific attributes like Id, name etc. to recognise that dropdown.

     

    <Input> tag is for a textbox. Also see if there is a <select> tag that represents a dropdown and if pointing to that works.

  • Hairy_Drumroll Profile Picture
    251 on at

    Good one, thanks!

    For those of you who don't know where the "other attributes from the selector window" are, like I didn't, in the top-right of the PAD editor window is three icons, Variables (looks like {x}), UI elements (looks like a 3 stack of squares), and Images (images).

    - Click the UI elements button

    - Right-click the element you wish to edit (or select Edit under the three dot menu on the right edge)

     

    This will bring up the 'Selectors' window. One or more elements will already be selected.

    - Select the element you wish to edit.

    - Tick (or untick) the attributes of that element on right hand side. You can also change the Operator and Value here if you need to.

     

    Good luck!

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
11manish Profile Picture

11manish 315 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 267

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard