Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

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

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 :


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 :






Can anybody help ? Much apperciated.






Accepted Solutions
Super User
Super User



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.

View solution in original post

Power Participant
Power Participant


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.





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.

Responsive Resident
Responsive Resident

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.

Super User
Super User



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.

Frequent Visitor

above solution worked out. Many Thanks for this.

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Top Kudoed Authors
Users online (4,745)