Multiple windows/tabs breaking process

Hey…if anyone is interested i found a solution to my problem:

  1. Use a find children activity → set the filter to “”, set the scope to FindScope.FIND_TOP_LEVELS, grab the output variable

  2. use a for each, setting the type argument to uipath.core.uielement

  3. in the For each, use an IF statement that is something like item.Selector.Tostring.contains(“Tab text”) → tab text is actually what appears in your chrome tab name. On this page it would be “Multiple windows/tabs break…”.

  4. Once you found the tab text, store it as a string variable and then use a break to jump out of the for each

  5. use the string variable in your “attach browser” activity. Place it as the selector.

If you do this, it does not seem to matter how many of the same tabs are open. The attach browser just picks the first one. I tried this with multiple windows and tabs. Works great!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.