How to Use Elements From Repository In A Utility Class
I would like to use elements recorded in the Elements repository in my standalone code class file.
Solution
We do not recommend using elements from the repository in a standalone class file. If there is a specific scenario you could not avoid you could refer to the example below. You would need to add references to ArtOfTest.WebAii.Core.dll and ArtOfTest.WebAii.Design.dll and include using statements for these in the code file. The Utility class inherits the BaseWebAiiTest and requires definition for region [Dynamic Pages Reference].
In a coded step you would need to create an instance of this class in order to use its methods as shown below: