Windows Forms applications use the predefined automation property automationId to specify a stable identifier for the Windows forms control.
/FormsWindow//PushButton[@automationId='btnBasicControls']