Open URL in different tabs one browser

Hi everyone! Can anybody help me? I need read url from excel in one browser window, but in different tabs, but all rows open in different windows. What activities I should use? Attach my flowchart to see what I’ve already done. Thank a lot!
Flowchart.xaml (27.2 KB)

Hello,

similar question here : Open different websites into different tab but on one browser - #4 by loginerror maybe it could help you out

2 Likes

@elnarissa If you want to open in different tabs, follow below steps,

  1. Attach Existing Browser using “Attach browser”
  2. Send Hotkey "Ctrl + t " to open a new tab
  3. Attach Newly opened tab using “Attach browser” Activity in the same browser
  4. Use the “Navigate” Activity to search the URL.
2 Likes

Hey, get a loop through all your urls, and inside this loop attach you browser with Attach Browser Activity and then you can inject JS with Inject Js Script to open new tab with your url :

“function () {window.open(”+your_url+“, ‘_blank’);return true;}”

Cheers

2 Likes

Hello! Unfortunetaly, it’s doesnt work or I do something wrong. Use steps in Open Browser, but new windows (not tabs) of browser open and send hotkey doesnt work too…

Send hotkey should work. Try editing the selector to the tab element, not the webpage inside it.

The following worked for me in order to open two tabs with two different URLs - you could add a loop or copy/paste and adjust accordingly if you had multiple tabs to open and work with:

1) Inside a Sequence, add a “Use Application/Browser” Activity (Chrome) and inside the Browser URL field, I pasted between “” the 1st website link.

2) In the “Properties” section of this activity, I added an “Output Element” which is a variable called “strBrowser”, and then the following “Options”:

3) After that activity, the next one I added was a “Keyboard Shortcuts” Activity, and I configured its properties so that you don’t need to point at an application for it to know where to press the keys, instead, there is an “Input Element” property I defined with “strBrowser”, which holds the object created when we opened the first google chrome link, and then afterwards just sending the “CTRL + T” combination.

4) I added another “Use Application/Browser” just beneath the “Keyboard Shurtcuts” one, and the Browser URL field this time I set it to: “chrome://newtab/

Then, inside the “Do” section of this activity, I added a “Go to URL” activity and just pasted between “” the 2nd link I wanted to access on that new tab generated on step number 3.

The “Options” I configured within this 2nd “Use Browser” activity are the same than the above shown in the image.

All of the above being said, this is the first scenario that works for me after reading for a while on this specific topic.

I wonder if this would work for automating a process which involve the use of multiple websites being open simulatenously and then executing certain actions on each tab and/or passing info from one to another - that’s still to be tested, but perhaps I will have more info. later when I keep adding on this activity.

Something equally important to note is that under the “Options”, I am using “Single Window” as the Windows Attach Mode, which could complicate things down the line. We should also try with “Application Instance” here if that in fact causes some issues when trying to execute a process on each tab.

Hope this helps, thanks!