Hello there, I tried but only the first window is the one who goes to url. I had to write the actual URL in Browser with a Type Into activity.
However, I’ve also tried using Ctrl+Tab to open new pages, and this was the only way.
I found this solution:
- (For Mozilla, Edge) Don’t open UiAutomation in the “home” page of the browser, UiPath cannot comunicate with the browser in the home page, you must open the browser with a default url like www.google.com.
- When going to open a new Tab, use shortcut activity “Ctrl + Tab”. This opens a new tab in almost any browser.
- If you are going to use both tabs at the same time, then save both tabs or App/Web Browser activities into a UiElement variable.
- Use Type into Activity in the new tab, to simulate “Go to url” activity beacuse when using go to URL activity, only works for the first tab, not the new one, because it cannot be attatched. For example, type www.facebook.com. then use Enter or click to go to the new page.
- Then, you can use a new App/Web Browser activity to attatch the new opened tab, with the same link (for example www.facebook.com). Now you can save the browser as UiElement.
- When automating both tabs, use the UiElement as parameter for any UiActivity.
- If you want to close a particular tab, then you should close manually, since close option “If Opened by App/Web Browser” won’t work. This because we opened a new tab manually. so you would use an App/Web browser as input the UiElement for the corresponding tab, and then use the option always to close.
I attach some workflow that might be useful if you want to open multiple tabs in a single window, I think this same method should work for Edge. However, it’s imposible to work in background, since the “new tab” function for any browser take us to the new tab no matter what.
Hopefully this helps, until UiPath fix this issue, happy automation!
Mozilla.xaml (18.1 KB)
OpenFB.xaml (24.7 KB)