Controls

A Control is a declaration in a PageObject, and is a representation in code of an element. An element is the representation from the UI.

Control and PageObject as elements

QualityMate uses interfaces to declare a control in the PageObject class.

public class App : PageObject
{
    // Controls with their interface
    public ILabel myLabel { get; set; }
    public ITextBox myTextBox { get; set; }
    public IButton OKButton { get; set; }
}

To use a QualityMate interface you need to add it as a type of the defined control from the Mobilize.Qualitymate.ControlInterfaces namespace.

The interfaces do not need to be implemented because QualityMate injects the implementation depending on the selected technology.

Check the control types we support in the following link.

Last updated

Was this helpful?