Hi there, I have a situation where I click a button on my first use browser application and a new tab is opened. I indicate the new tab using a use browser application, but when defining a click activity on the new tab in the correspondent use browser application, the button is not seen. At first, in the Strict selector the target is seen, but when I open the Ui Explorer to edit the selector, the button is no longer seen by UiPath. Both use application browser activites have the Window attach mode property set to Application instance. If I use Go to URL activity ( as I also have the URL of the new tab), the first tab is loading with the new URL. I need both instances to be active and to be able to do actions on them, but nothing seems to work. I also would like to mention that I use Chrome in Incognito. How can I use two tabs and make actions on them?
Welcome to community
UiPath cannot interact with both tabs at the exact same time, but you can switch and automate each reliably.
This is the normal behavior since UI automation runs in a single foreground session.
If your goal is true parallel work, consider using two separate browser windows or running workflows in Parallel activity.
Happy Automation!!
Hi Christopher,
Thank you for your answer. I do not specifically want to use them at the same time, I want to be able to do actions in the first, then when the second one opens to do some actions, and then return to the first instance. I have tried with a parent Use browser application in which a child Use browser application is used, but whenever I try to define the selectors for various actions ( click for example ), the UiExplorer doesn’t work on the child use browser. The second tab opens automatically, so the Open setting is set to never. How can I define the actions on the second tab so that they can work? At this point I am also considering using attach browser activity, but I don’t really know how this will behave when using incognito.
Use two Use Application Browser activities inside each other like the below and then when you use any interactive activity like Click inside the scope, you will get option to choose which tab you want to work with. Just select the Work in scope with correct scope and you should be able to work on both the tabs as needed.
Hi ashokkarale,
I have tried exactly the same you pinpointed in the screenshot, and it does not work. Whenever I click on UiExplorer to edit the selector, the UiElement cannot be found. It’s like UiExplorer cannot find the tab I already defined in Work in scope. Do you have any other ideas?
Try using Activate activity to activate the tab before you start interacting with it.
I tried with Activate activity, I referenced the whole new tab and it cannot see it, and I also referenced a title from the page so as to be able to bring it forward. When I open the selector in UiExplorer, instead of the title from my second tab, it sees the title from my first tab. Please note that the Activate is used in the child Use Browser activity, on the second tab I need to make actions on it. Can you further advise? Thanks!
- are the name same for both tabs?
- try using idx in the selector for the window..generallys econd tab will have idx as 2
cheers
Hi there, yes the title of the page are the same for both tabs, only some details in the URL are a little bit different. And I also don’t get an idx = 2 for the selector of the window, any other ideas?
