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 / set drop down list val...
Power Automate
Answered

set drop down list value on web page keep getting error.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,

 

I'm trying to set a value on a company webpage using the action Set-drop-down list value on web page action,but whatever I do it  can't be set.  (name nor index ) tried value' like the full name or number (number works in vba-code ).

the element on the webpage of the drop down looks like this :

hellemok_0-1656505283752.png

error in PAD :

Microsoft.Flow.RPA.Desktop.Modules.SDK.ActionException: Drop-down list with selector '> body > div[Class="content"] > div[Class="content-rr"] > form[Name="PwcGetBcnForm"] > table:eq(0) > tbody > tr:eq(1) > td[Class="field"]:eq(1) > select[Class="text-selectBox"][Name="wcId"]' not found. ---> Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.Exceptions.ElementNotFoundException: Exception of type 'Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.Exceptions.ElementNotFoundException' was thrown.
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationResultExtensions.ThrowIfError(WebAutomationResult result, String cssSelector, String option)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationRuntime.SelectOptionByName(IWebAutomationBrowser browserFacade, ListVariantBase optionsToSelect, String cssSelector, Boolean wait, Boolean isMultiSelectList)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationRuntime.<>c__DisplayClass30_0.<SetDropDownListValueOnWebPage>g__CoreFunction|0(Boolean wait, IWebAutomationBrowser browser)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationRuntime.<>c__DisplayClass27_0`1.<ExecuteWebAutomationActionCore>b__0()
at Microsoft.Flow.RPA.Desktop.Robin.Shared.Runtime.Utilities.Clock[T](Int64 maxMillisecondsToWait, Int32 step, Func`1 action, Func`2 successCondition)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationRuntime.ExecuteWebAutomationActionCore[T](IWebAutomationBrowser automationBrowser, WebAutomationOptions webAutomationOptions, Func`3 coreFunction, Predicate`1 successCondition)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationRuntime.ExecuteWebAutomationActionCore(IWebAutomationBrowser automationBrowser, WebAutomationOptions webAutomationOptions, Func`3 coreFunction)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationRuntime.SetDropDownListValueOnWebPage(WebBrowserInstanceVariant webBrowserInstanceVariant, TextVariant cssSelectorForDropDownListElement, WebAutomationOptions webAutomationOptions, WebPageDropDownListOperation dropDownListOperation, ListVariantBase optionsToSelect)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationActions.SetDropDownListValueOnWebPage(Variant webBrowserInstance, Variant cssSelectorForDropDownListElement, Variant optionsNames, Variant optionsIndeces, Variant dialogButtonToPress, Int32 dropDownListOperation, Boolean waitForPageToLoad, Int32 courseOfActionIfDialogAppears, Int32 waitForPageToLoadTimeout)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.SetDropDownListValueBase.Execute(ActionContext context)
--- End of inner exception stack trace ---
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.SetDropDownListValueBase.Execute(ActionContext context)
at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

 

UI element capatured :

hellemok_1-1656505548318.png

 

 

 

 

Can anybody help ? Much apperciated.

 

 

 

 

I have the same question (0)
  • AS-06081019-0 Profile Picture
    1,738 Super User 2024 Season 1 on at

    @Anonymous 

    One way to do it is to get the Ui element of the downarrow that is used in the dropdownlist.
    Then use sendkeys to choose whatever you want.

     

    Cheers,

    Ankesh

    --------------------------------

    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • ryule Profile Picture
    929 Super User 2024 Season 1 on at

    Have you tried modifying the UI Element? Perhaps it's slightly dynamic, so maybe try unchecking all of the Selector boxes except for the last one.

  • Verified answer
    VJR Profile Picture
    7,635 on at

    VJR_0-1656560529336.png

     

    Uncheck all other checkboxes. Keep the last one that says select...Name = wcld

     

    It is not pointing to the right selector for the dropdown and will need a bit of playing around with the selectors and eventually you will get it.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    above solution worked out. Many Thanks for this.

  • Abie Profile Picture
    6 on at

    It works when you select "class" to pick from the drop down list. Class is getting you to the selection.

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
David_MA Profile Picture

David_MA 274 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 175

#3
Haque Profile Picture

Haque 166

Last 30 days Overall leaderboard