Custom Attributes for Windows Forms Applications

Windows Forms applications use the predefined automation property automationId to specify a stable identifier for the Windows forms control.

Silk4J automatically will use this property for identification in the locator. Windows Forms application locators look like the following:
/FormsWindow//PushButton[@automationId='btnBasicControls']