The BaseScreen is an abstract class that represents a section of the UI that contains other UI elements (such as buttons, textboxes etc). The class offers a ScreenSelect property that can be used to limit the search of the contained UI elements to this UI section. Since it inherits from OnScreenElement itself, we can WaitFor on the BaseScreen to ensure the corresponding UI page is shown.
Since the constructor is part of the generated class and should not be changed by the user, the
partial void ConfigureElementProperties()method allows to set properties of the screen or generated elements or instantitate additional elements. The method will be executed as part of the constructor.
Through the IAppBasics interface the BaseScreen has access to important properties of the App itself. Therefore the App or another AppBasics property needs to be passed to the constructor when instantiating a BaseScreen.
Namespace: Progile.TRIO.BaseModel Assembly: Progile.TRIO.BaseModel (in Progile.TRIO.BaseModel.dll)
Type: Progile.TRIO.BaseModel.IAppBasics The AppBasics that offers access to the ITester, the rectangle of the window containing the application and an IScroller implementation.
Type: String The name of the element that will be used for logging and reporting of exceptions (customer facing).
Type: ImageReference The reference to the image that is searched for on WaitFor() and determines if the correct screen is displayed.
A Select Filter containing the whole screen. It is recommended to use this as Filter for contained Elements. Defaults to AppBasics.Window if not set.
The scroller that will be used to scroll on this screen. By default AppBasics.GetScroller is used to set the scroller.
The AppBasics that offers access to the ITester, the rectangle of the containing Window and an implementation.