SelectWindow not working on MacOS and Chrome?

MacOS 12.0.1, English. Chrome Version 105.0.5195.102. UI Vision RPA 8.0.1

Maybe I am just being very stupid, but selectWindow does not seem to work for me? I have one browser open with 3 tabs. I run my script that literally consists of two lines:

  1. bringBrowserToForeground
  2. selectWindow | tab=1

I would expect this to open up the second tab? if 0 is the first tab open and so on.

I get an error? There isn’t a script to share because it is literally one chrome window that I open with three tabs and then I am just trying to get ui vision to change tabs. No combination of selectWindow tab=x works for me, e.g. even tab=0 does not have any effect. The tab doesn’t change

What am I doing wrong?

  • [info]

Executing: | selectWindow | tab=1 | |

  • [error]

[Line 2] failed to find the tab with locator ‘tab=1’

It also dont work for me many times.
if I change tab with keyboard shortcut
macro still works with previous tab.

  • [info]

Executing: | selectWindow | open | https://ui.vision/ |

  • [error]

Line 1: invalid window locator, ‘open’

{
“Command”: “selectWindow”,
“Target”: “open”,
“Value”: “https://ui.vision/”,
“Description”: “”
},
{
“Command”: “selectWindow”,
“Target”: “tab=1”,
“Value”: “”,
“Description”: “”
}

Thanks, is there any work around since that command doesn’t work well? For now I am using XTYPE to put in a keyboard shortcut to change window:

{
“Command”: “XType”,
“Target”: “${KEY_CMD+KEY_2}”,
“Value”: “”,
“Description”: “”
},

It is not the best solution though

does code continues on new tab?