Show / Hide Table of Contents

Delegate Application.CallAfterFillInDelegate

Delegate callback for the CallAfterFillIn EventHandler which will be invoked after each row of tokens is consumed.
Invoked whenever FillInFrom/FilllInFromDatabase/FillInFrom are used

Namespace: GenerallyPositive.Application
Assembly: GPAL.dll
Syntax
public delegate int CallAfterFillInDelegate(Application application, IGPALGrid<string> tokens, int tokenIdx);
Parameters
Type Name Description
Application application

The GPAL Application object being filled in

IGPALGrid<System.String> tokens

The current GPALGrid of tokens

System.Int32 tokenIdx

The current token row index

Returns
Type Description
System.Int32

-1 if the handler requests the application to exit, otherwise the return value is ignored

Examples
public static int CallAFterFillIn(Application application, GPALGrid tokens, int tokenIdx) // text filled in search box, click 'Search' button
{
    Selector cSharpMenuItem = (Selector)GPAL.Selector
    .WithName("C#MenuItem")
    .WithXPath("/Window/MenuBar/MenuItem[6]/Menu/MenuItem[4]/Menu/MenuItem[2]");
    //.WithSimulateMouse(true); // move the mouse across the screen when navigating to this element

    application
        .WithSelector(cSharpMenuItem)
        .Hover()
        .WaitFor(5000)
        .LeftClick();
}
In This Article
Back to top Generated by DocFX