# Multiple tabs in Edge browser

**URL:** <https://forum.robotframework.org/t/multiple-tabs-in-edge-browser/8264>\
**Category:** SeleniumLibrary\
**Created:** [10 January 2025 05:25 UTC](https://forum.robotframework.org/t/multiple-tabs-in-edge-browser/8264 "2025-01-10T05:25:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![STBN03](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@STBN03](https://forum.robotframework.org/u/STBN03)\
**Post date:** [10 January 2025 05:25 UTC](https://forum.robotframework.org/t/multiple-tabs-in-edge-browser/8264/1 "2025-01-10T05:25:27Z")

</div>

I’m using Selenium with Robot framework. How to open more than one tab in Edge browser?

I tried the following

1. Execute JavaScript Window.open() – Error JavascriptException: Message: javascript error: Window.open is not a function
2. Press keys Ctrl+t, Control+t - types Ctrl+t in text field of the browser.
3. Edge settings allows Java Script and Pop ups are not blocked.  
Thanks in advance for any solution provided.

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [10 January 2025 06:22 UTC](https://forum.robotframework.org/t/multiple-tabs-in-edge-browser/8264/2 "2025-01-10T06:22:27Z")

</div>

HI @STBN03,

I don’t think Selenium Library has a native way to do this, normally new tabs/windows are opened by clicking links.

There is the [Execute Javascript](https://robotframework.org/SeleniumLibrary/SeleniumLibrary.html#Execute%20Javascript) keyword so combined with the javascript [window.open() Method](https://www.geeksforgeeks.org/how-to-open-url-in-new-tab-using-javascript/) you could probably acheive what you want.

Then use [Switch Window](https://robotframework.org/SeleniumLibrary/SeleniumLibrary.html#Switch%20Window) to select the new window.

Hope that helps,

Dave.

---

<div class="post-metadata">

**Author:** ![STBN03](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@STBN03](https://forum.robotframework.org/u/STBN03)\
**Post date:** [10 January 2025 16:48 UTC](https://forum.robotframework.org/t/multiple-tabs-in-edge-browser/8264/3 "2025-01-10T16:48:17Z")

</div>

Thanks for the response Dave.  
As I mentioned I tried 1. Execute JavaScript Window.open()

and end up with error  
“JavascriptException: Message: javascript error: Window.open is not a function”

Am I missing anything here any specific libraries loading? Currently loading the following.

Library SeleniumLibrary

---

<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:** [10 January 2025 17:59 UTC](https://forum.robotframework.org/t/multiple-tabs-in-edge-browser/8264/4 "2025-01-10T17:59:17Z")

</div>

Hi,

I use this with Seleniumlibrary, if you have already a browser open, and want to go to a new tab and url

```
Execute Javascript window.open('about:blank', '_blank');
${windowsID} Get Window Handles
Switch Window ${windowsID}[1]
Go To ${url}

```

I think your problem comes from the fact that Window.open has an upper case to Window object in your case. The method is _open_ on _window_ object.

Regards  
Charlie

---

<div class="post-metadata">

**Author:** ![STBN03](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@STBN03](https://forum.robotframework.org/u/STBN03)\
**Post date:** [10 January 2025 19:14 UTC](https://forum.robotframework.org/t/multiple-tabs-in-edge-browser/8264/5 "2025-01-10T19:14:14Z")

</div>

Thank you so much Charlie it worked.

I was using wrong number of parameters for window.open.
