The class ID of a Microsoft Foundation Class (MFC) control might change over time and therefore cannot be used to generate
a stable locator. To avoid generating unstable locators,
Silk4NET uses the following attributes for the locators:
- The MFC class name, if the Windows class name of the MFC control starts with
Afx:.
- The Windows class name, if the Windows class name of the MFC control does not start with
Afx:.
Silk4NET only supports MFC version 140, and only supports the following combinations:
- Release, x86, MBCS
- Release, x86, Unicode
- Debug, x86, MBCS
- Debug, x86, Unicode
- Release, x64, MBCS
- Release, x64, Unicode
- Debug, x64, MBCS
- Debug, x64, Unicode
Note: To execute existing tests with MFC control locators that have been generated with
Silk4NET 18.5 or prior, set the
OPT_COMPATIBILITY option in the affected test scripts to version 18.5.0 or prior:
'VB .NET code
Agent.SetOption("OPT_COMPATIBILITY", "18.5.0")