Select Tab Issue

Hi I’m having a problem on selection of the tab.
I’m trying to test the tab selection on “My CRM(sample App)” by UIPath.
Tried the click and tab selection but it won’t work.
Please help. Thanks

For those who want to check the App.
Here’s the sample app link
https://aws1.discourse-cdn.com/uipath/original/2X/0/06a6f88597f1e8a6b6bb5cdd8d39b3195a73bd1f.zip

Hopefully someone will help me on this issue. =(

@Jayson

Hello Jayson,
the My CRM (Sample App) from UiPath bases on Windows Forms from dotNET 3.5.

Here the controls of the app:

In comparison here a Win32 example app with a tab:

The tab of the Windows Forms app is detected as a window, not as a tab - you can see this by the different icons. In my opinion could this be the reason why Robins tab command not works in this case, because in the Win32 application it works.

If you take a look into the appmask file you will see that UISpy does not detect any difference between these tabs. The name is different, but the attributes to identify the control are the same, especially ID and Class.

{
  "Applications": [
    {
      "Screens": [
        {
          "Controls": [
            {
              "AutomationProtocol": "uia3",
              "ScreenShot": null,
              "CustomSelectors": [],
              "ElementTypeName": "tab item",
              "Name": "Tab_Item_People",
              "SelectorCount": 1,
              "Selectors": [
                {
                  "Elements": [
                    {
                      "Attributes": [
                        {
                          "Ignore": true,
                          "IsOrdinal": false,
                          "Name": "class",
                          "Operation": "EqualTo",
                          "Value": "WindowsForms10.SysTabControl32.app.0.378734a"
                        },
                        {
                          "Ignore": true,
                          "IsOrdinal": false,
                          "Name": "enabled",
                          "Operation": "EqualTo",
                          "Value": true
                        },
                        {
                          "Ignore": false,
                          "IsOrdinal": false,
                          "Name": "id",
                          "Operation": "EqualTo",
                          "Value": "tabControl1"
                        },
                        {
                          "Ignore": true,
                          "IsOrdinal": false,
                          "Name": "name",
                          "Operation": "EqualTo",
                          "Value": ""
                        },
                        {
                          "Ignore": true,
                          "IsOrdinal": true,
                          "Name": "ordinal",
                          "Operation": "EqualTo",
                          "Value": -1
                        },
                        {
                          "Ignore": true,
                          "IsOrdinal": false,
                          "Name": "visible",
                          "Operation": "EqualTo",
                          "Value": true
                        }
                      ],
                      "CustomValue": null,
                      "Ignore": false,
                      "Name": "Tab 'WindowsForms10.SysTabControl32.app.0.378734a'",
                      "Tag": "tab"
                    },
                    {
                      "Attributes": [
                        {
                          "Ignore": true,
                          "IsOrdinal": false,
                          "Name": "class",
                          "Operation": "EqualTo",
                          "Value": ""
                        },
                        {
                          "Ignore": true,
                          "IsOrdinal": false,
                          "Name": "enabled",
                          "Operation": "EqualTo",
                          "Value": true
                        },
                        {
                          "Ignore": true,
                          "IsOrdinal": false,
                          "Name": "id",
                          "Operation": "EqualTo",
                          "Value": ""
                        },
                        {
                          "Ignore": false,
                          "IsOrdinal": false,
                          "Name": "name",
                          "Operation": "EqualTo",
                          "Value": "People"
                        },
                        {
                          "Ignore": true,
                          "IsOrdinal": true,
                          "Name": "ordinal",
                          "Operation": "EqualTo",
                          "Value": -1
                        },
                        {
                          "Ignore": true,
                          "IsOrdinal": false,
                          "Name": "selected",
                          "Operation": "EqualTo",
                          "Value": true
                        },
                        {
                          "Ignore": true,
                          "IsOrdinal": false,
                          "Name": "visible",
                          "Operation": "EqualTo",
                          "Value": true
                        }
                      ],
                      "CustomValue": null,
                      "Ignore": false,
                      "Name": "Tab Item 'People'",
                      "Tag": "tabitem"
                    }
                  ],
                  "Ignore": false,
                  "Order": 0
                }
              ],
              "Tag": "tabitem"
            },
            {
              "AutomationProtocol": "uia3",
              "ScreenShot": null,
              "CustomSelectors": [],
              "ElementTypeName": "tab item",
              "Name": "Tab_Item_Company",
              "SelectorCount": 1,
              "Selectors": [
                {
                  "Elements": [
                    {
                      "Attributes": [
                        {
                          "Ignore": false,
                          "IsOrdinal": false,
                          "Name": "class",
                          "Operation": "EqualTo",
                          "Value": "WindowsForms10.SysTabControl32.app.0.378734a"
                        },
                        {
                          "Ignore": true,
                          "IsOrdinal": false,
                          "Name": "enabled",
                          "Operation": "EqualTo",
                          "Value": "True"
                        },
                        {
                          "Ignore": true,
                          "IsOrdinal": false,
                          "Name": "id",
                          "Operation": "EqualTo",
                          "Value": "tabControl1"
                        },
                        {
                          "Ignore": true,
                          "IsOrdinal": false,
                          "Name": "name",
                          "Operation": "EqualTo",
                          "Value": ""
                        },
                        {
                          "Ignore": true,
                          "IsOrdinal": true,
                          "Name": "ordinal",
                          "Operation": "EqualTo",
                          "Value": "-1"
                        },
                        {
                          "Ignore": true,
                          "IsOrdinal": false,
                          "Name": "visible",
                          "Operation": "EqualTo",
                          "Value": "True"
                        }
                      ],
                      "CustomValue": null,
                      "Ignore": false,
                      "Name": "Tab 'WindowsForms10.SysTabControl32.app.0.378734a'",
                      "Tag": "tab"
                    },
                    {
                      "Attributes": [
                        {
                          "Ignore": true,
                          "IsOrdinal": false,
                          "Name": "class",
                          "Operation": "EqualTo",
                          "Value": "WindowsForms10.SysTabControl32.app.0.378734a"
                        },
                        {
                          "Ignore": true,
                          "IsOrdinal": false,
                          "Name": "enabled",
                          "Operation": "EqualTo",
                          "Value": "True"
                        },
                        {
                          "Ignore": false,
                          "IsOrdinal": false,
                          "Name": "id",
                          "Operation": "EqualTo",
                          "Value": "tabControl1"
                        },
                        {
                          "Ignore": true,
                          "IsOrdinal": false,
                          "Name": "name",
                          "Operation": "EqualTo",
                          "Value": "Company "
                        },
                        {
                          "Ignore": true,
                          "IsOrdinal": true,
                          "Name": "ordinal",
                          "Operation": "EqualTo",
                          "Value": "-1"
                        },
                        {
                          "Ignore": true,
                          "IsOrdinal": false,
                          "Name": "selected",
                          "Operation": "EqualTo",
                          "Value": "True"
                        },
                        {
                          "Ignore": true,
                          "IsOrdinal": false,
                          "Name": "visible",
                          "Operation": "EqualTo",
                          "Value": "True"
                        }
                      ],
                      "CustomValue": null,
                      "Ignore": false,
                      "Name": "Tab Item 'Company '",
                      "Tag": "tabitem"
                    }
                  ],
                  "Ignore": false,
                  "Order": 0
                }
              ],
              "Tag": "tabitem"
            }
          ],
          "ScreenShot": null,
          "CustomSelectors": [],
          "ElementTypeName": "window",
          "Name": "Window_My_CRM_Sample_App",
          "SelectorCount": 1,
          "Selectors": [
            {
              "Elements": [
                {
                  "Attributes": [
                    {
                      "Ignore": true,
                      "IsOrdinal": false,
                      "Name": "class",
                      "Operation": "EqualTo",
                      "Value": "WindowsForms10.Window.8.app.0.378734a"
                    },
                    {
                      "Ignore": true,
                      "IsOrdinal": false,
                      "Name": "enabled",
                      "Operation": "EqualTo",
                      "Value": true
                    },
                    {
                      "Ignore": true,
                      "IsOrdinal": false,
                      "Name": "id",
                      "Operation": "EqualTo",
                      "Value": "Form1"
                    },
                    {
                      "Ignore": false,
                      "IsOrdinal": false,
                      "Name": "name",
                      "Operation": "EqualTo",
                      "Value": "My CRM (Sample App)"
                    },
                    {
                      "Ignore": true,
                      "IsOrdinal": true,
                      "Name": "ordinal",
                      "Operation": "EqualTo",
                      "Value": -1
                    },
                    {
                      "Ignore": false,
                      "IsOrdinal": false,
                      "Name": "process",
                      "Operation": "EqualTo",
                      "Value": "MyCRM"
                    },
                    {
                      "Ignore": true,
                      "IsOrdinal": false,
                      "Name": "visible",
                      "Operation": "EqualTo",
                      "Value": true
                    }
                  ],
                  "CustomValue": null,
                  "Ignore": false,
                  "Name": "Window 'My CRM (Sample App)'",
                  "Tag": "window"
                }
              ],
              "Ignore": false,
              "Order": 0
            }
          ],
          "Tag": "window"
        }
      ],
      "Version": "1.0.0.0",
      "CustomSelectors": [],
      "ElementTypeName": null,
      "Name": "New_Application",
      "SelectorCount": 0,
      "Selectors": [],
      "Tag": null
    }
  ],
  "Version": 1
}

It seems that this app cannot be automated on this way.
Best regards
Stefan

1 Like