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:
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
Solved! Go to Solution.
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.
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.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.