Solved

Test SDK: How to Add Value to Attribute

  • 4 October 2023
  • 2 replies
  • 61 views

I’m creating SDK tests and I need to fill in the value for attribute. I’m able to find the needed row and it clicks on it, but I cannot insert any value to it. The error is “Could not find a web element”.

I tried to make it with DynamicControl but it throws error as well (tried DropDown, DropDownList - nothing works).

Could someone please help me out?

 

 

icon

Best answer by AaronB 4 October 2023, 16:46

View original

2 replies

Userlevel 4
Badge +1

Hello Anna,
Thank you for posting your question.

Here is the solution, feel free to ask any other questions you have, We are happy to assist!

using Controls.Editors.DropDown;

...

opportunity.OpAttributes.SelectRow("Attribute", "What’s the Ask?"); //selecting the dropdown’s row first
opportunity.OpAttributes.Row.Value.DynamicControl<DropDown>().Select("Access Key"); //selecting the value from the dropdown options

 

Thank you so much, Aaron. It works now!

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved