Switching tabs, but jumping back to first tab when writing

Hey Folks,

  1. I have three chrome tabs of an identic websites e.g. google frontpage

  2. I fill in the information on the first site (but don´t search)

  3. I switch tabs with ‘send Hotkey: ctrl+pgdn’

  4. It should fill the search field on the second tab, but jumps back to the first tab (and there it fills the data again)

–it never reaches the third tab

Any ideas, how the Robot could stay on the second or third tab to fill the search?

Give a try on working with Browser Output from Open Browser / attach Browser for isolating and seperate accessing the different tabs

For more Details in the topic also have a Look here

Unfortunately i work with tabs and not browsers, and i couldn’t find any tab id´s.
Additionally the tabs are open already, so it´s more like:

Write → next tab → write → next tab

it´s just about the writing, not hitting the search button

there were some typos in the discussion from the referenced posts and “browser” were used instead of tabs. But you can share the three urls with us and we can crosscheck the approach with the browser output variable

it´s really just about google.

Open three tabs in the same Chrome browser.

Write in each tab:

  1. hello
  2. beautiful
  3. world

Unfortunately I can’t upload my xaml

And keep in mind, that you should not hit the search button.

I have 3 tabs with the google mainpage open
I write different values into those tabs

Afterwards i can look through those tabs


i have a similar problem. The are several posts on this forum related to tabs, but no answer to any of them.

any help would be appreciated.


1 Like

Every tab needs to be treated as a browser. So, if the browser has three tabs open, with different links, like www.duckduckgo.com, www.google.com, www.bing.com, then each of these have different selectors and one can use the AttachBrowser activity to attach to each respective tab.

However, if three tabs are open with the same address, like, all of them have google front page open, there is no way to selectively distinguish them from each other. In cases like these, one might have to compromise and keep track of the tabs by shortcut Ctrl+1, Ctrl+2 and Ctrl+3.

1 Like

Thank you so much for explaining @bcm , I was having same issue.

Hi i have the same issue, however i have not understood the solution,

when i press a button inside the main tab, it opens a new tab , and then jumps back to the 2nd tab, i want to use the click activity in 2nd tab, but it does not work,
Please help me fix this issue.

If you are dealing with limited number of tabs, like say up to 10, you can use switch command, and attach each separately in the switch, and enter the words by using for each command. you can type into first tab and then use Ctrl Tab to go to next and attach window again and then type into.

I am exploring a solution for opening 20+ tabs and entering data in each tab quickly one after other through for each and common identifier for each tab though all urls are same.

Hi @batope, @thamenz, @Mystical_Devices,

Try this:
2022-10-12 14_55_34-WorkwithTabs - UiPath Studio Community

This code assumes the 3 tabs are allready open, build this with the newest UiAutomation activities (22.10.1) in the Windows legacy platform.

Hope this helps!