Error When Using “For Each UiElement” to Select Edge Tab Bar – “This element is not suitable for table extraction”

Hello everyone,

I’m currently trying to activate a specific tab in Microsoft Edge that contains a particular URL.

Following advice from Autopilot, I attempted to use the For Each UiElement activity to select the tab bar and iterate through the tabs. However, when I try to indicate the tab bar element, I receive the following error message:

“This element is not suitable for table extraction. Please select an element that is part of a table.”

I have already tried reinstalling the package and even reinstalling the program, but the issue persists.

Is it possible that I’m using the wrong activity for this purpose?
If so, what would be the recommended approach to iterate through Edge tabs and activate the one that contains a specific address?

Any guidance would be greatly appreciated.

Thank you!

Hello sevinyoon,

Is better for you to use this logic. Start a loop for example while loop and send hotkey with Ctrl + Tab to move to the next tab and with get attribute you can pull url or title of the current active tab. You can check check if the url matches if yes, you can break from the loop.

If it helps you can press solve this issue. Happy automation!

Hi @sevinyoon

  1. Use Use Application/Browser
  2. Inside it, use Check App State
  3. Set condition using:
  • url contains "yourUrlPart"

If exists → Activate activity to activate the tab

Hope it helps!!

Regards,
Pravallika

Hi @sevinyoon

Modern Activities:

1.Place the use application / browser activity
2.Set the properties as Close Never and Open Never
3.Pass the required URL
4.Use the Activate activity within the Use application/ browser activity so that the tab which contains the same URL will come to foreground

Classic Activities:
1.Place the Attach browser activity
2.Set the properties as Close Never and Open Never
3.Pass the required URL
4.Use the Activate activity within the Attach activity so that the tab which contains the same URL will come to foreground

Thanks & Regards,
vrdabberu

Hi @sevinyoon ,

Could you try the following:

Use For Each UiElement and select the Tab instead of tab bar. If it identify the all the tabs then you can iterate through tabs and preform your desired actions.

Thanks