How to open another/new window in the existing browser window

Hi Team,

I have 1st launched the Chrome browser and it opened the https://rpachallenge.com/ , now I want to open the another link Google.com in the second new window.

Can you help me…I did but it’s opening two different chrome window,

I want to open like this, in the below image.

Hi @balkishan

Try this approach please

1 Like

Hi, I don’t want to use keyboard shortcut.

Can’t I use the activity means open app/browser inside the open app/browser activity to achieve it?

@balkishan,

Any specific reason to not have separate windows and prefer tabs?
I would say windows are convenient for bot to manage and tabs are convenient for human.

There isn’t an activity specifically to open new tab so we got keyboard shortcut is the only way.

EDIT 1

Found one more approach here:

2 Likes

Hi @balkishan

You can give it a try but I don’t think it will work the way you want.

May I ask, why are you inclined to not use keyboard shortcut?

because the keyboard shortcut is not reliable and high chances are failing in the unattended bot run.

we don’t have any specific activity/properties so it can open new url in the existing chrome window instead of opening in a completely new window.

Hi @balkishan

Could you pls try like this:

Under the “Inject js script” Activity use below :
“window.open(‘https://www.google.com’, ‘_blank’);”

If helpful, mark as solution. Happy automation with UiPath