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.
Solved! Go to Solution.
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.
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.
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.
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.
above solution worked out. Many Thanks for this.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.