# How to open two different urls in multiple tabs on same browser

**URL:** <https://forum.robotframework.org/t/how-to-open-two-different-urls-in-multiple-tabs-on-same-browser/6960>\
**Category:** Robot Framework\
**Created:** [5 March 2024 19:27 UTC](https://forum.robotframework.org/t/how-to-open-two-different-urls-in-multiple-tabs-on-same-browser/6960 "2024-03-05T19:27:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gopikg](https://avatars.discourse-cdn.com/v4/letter/g/82dd89/32.png) [@gopikg](https://forum.robotframework.org/u/gopikg)\
**Post date:** [5 March 2024 19:27 UTC](https://forum.robotframework.org/t/how-to-open-two-different-urls-in-multiple-tabs-on-same-browser/6960/1 "2024-03-05T19:27:05Z")

</div>

As per requirement need to open two different urls in multiple tabs on same browser, I tried with

Open Browser URL1 alias=Test  
Open Browser URL2 alias=Test

it’s opening two urls(overwrite to first url) on same tab on same browser but not opening in different tab’s on same browser. Can you suggest me on this.

---

<div class="post-metadata">

**Author:** ![CharlieScene](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/charliescene/32/3484_2.png) [@CharlieScene](https://forum.robotframework.org/u/CharlieScene)\
**Post date:** [5 March 2024 19:55 UTC](https://forum.robotframework.org/t/how-to-open-two-different-urls-in-multiple-tabs-on-same-browser/6960/2 "2024-03-05T19:55:25Z")

</div>

Hello,

You should open you’re browser with

```
Open browser URL chrome

```

Then open the new tab this way :

```
 Execute Javascript window.open()

```

Then you can use _Get Windows Handles_ to obtain windows’ names, then _Select Window_ to select the last ID from the Handle.  
A _Go to url_ should then get you where you need.

Regards  
Charlie

---

<div class="post-metadata">

**Author:** ![gopikg](https://avatars.discourse-cdn.com/v4/letter/g/82dd89/32.png) [@gopikg](https://forum.robotframework.org/u/gopikg)\
**Post date:** [5 March 2024 21:05 UTC](https://forum.robotframework.org/t/how-to-open-two-different-urls-in-multiple-tabs-on-same-browser/6960/3 "2024-03-05T21:05:21Z")

</div>

Thank you Charlie
