Loading ...

How to work with html elements created via customization project with Acumatica Test SDK

In this article, I want to explain how to work with completely custom html elements that were not generated in the wrapper, and together with that cannot be found with the DynamicControl method.

 

As an example, here is a separate application connected with Acumatica via webhooks.

 

 

If we need to click, for example, Analyze button here, we will not be able to find it in the wrapper, as all elements of this application were not generated in WG. Together with that, we cannot use DynamicControl method, because it is not even an Acumatica component.

 

So, for us it is just an html element, that has nothing in common with Acumatica. Therefore, we need to find it via WebDriver.

 

Here is how I found a button “Analyze”:

 

IWebElement analyze = Browser.WebDriver.FindElement(By.Id("analyzeButton"));



So, once we locate an element, we can use the needed method depending on our test. In this case, I needed to just click the button, so I used analyze.Click();. If, for example, you have an input and you need to type any text, you will need to use SendKeys(“”) method.

Be the first to rate this post

  • Currently 0.0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5