Is there a way to partially match a tab title with selectWindow?

I am using RPA to analyze address information on a crud UI and if there is incomplete information, the macro brings up new tabs from external web sites to search for that missing information (street address, town, zip code, etc…). This works great when the external tab title is fixed, but some external sites have a different title each time the page is accessed. I’ve tried using the tab index approach, but this can become difficult to manage when multiple sites are utilized, the tabs often become ordered in different ways which will cause the macro to error.

It would be fantastic to be able to match the tab title partially somehow.

Thanks in advance.

2 Likes

This is a good idea! I moved your suggestion to our “todo” list.

As workaround for right now, maybe it helps to clean up (close) tabs that yo no longer need with selectWindows | tab=close.

1 Like

Does this feature implemented yet in recent UI.Vision RPA?

It’s 2021 and it seems it hasn’t been implemented yet. Has partially matching a tab title with selectWindow been incorporated yet?

Hi, not yet, but it is on our todo list.

Would really like to see this implemented.

It has been implemented. Tried yesterday the following command to avoid specifying user name in the title. It works! Just be alerted today it has been updated to UI.Vison RPA V8.0.1.
selectWindows | title=Welcome - * - DP

Yes, works now :smiley:

Demo macro:

{
  "Name": "go_to_tab0",
  "CreationDate": "2022-7-28",
  "Commands": [
    {
      "Command": "open",
      "Target": "https://ui.vision/demo/tabs",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "click",
      "Target": "linkText=Open new web page in new browser tab",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "comment",
      "Target": "selectWindow // tab=0",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "selectWindow",
      "Target": "title=*Browser*",
      "Value": "",
      "Description": ""
    }
  ]
}

Awesome! It appears to work in my limited testing.

I note that the documentation makes no mention of wildcards (*) though: selectWindow, select Window - Selenium IDE Commands Tutorial

Thanks for implementing.

2 Likes

Thanks for the feedback. We updated the selectWindow documentation page.