Skip to content
Get Free Trial

Windows Automation Issues

Unable to identify inner elements in a Windows Forms application

Section titled “Unable to identify inner elements in a Windows Forms application”

Symptom: In certain sections of Windows applications, some UI elements cannot be identified. For example, specific tree controls and their child nodes may not be identifiable, even though the parent pane can be identified. This behavior is commonly observed in older Windows Forms applications.

Resolution:

  1. First approach :

    1. If your application requires a specific .NET Framework, confirm that the necessary runtime version is installed on your system.

    2. The application may require an older runtime to function correctly and expose the inner elements. If your application needs .NET Framework 3.5 or an earlier version, you need to explicitly enable it in ‘Windows Features’.

  2. Second approach :

    1. If the first approach does not work, then add the following property to the <SahiPro>\userdata\config\userdata.properties file:

      sahi.desktop_automation.windows_automation.win_exe=SahiWinUIAutoClient.exe
    2. Restart Sahi Pro and check. Revert, if this does not help.