# Using openWindow(https://www.flipboard.com/)

**URL:** <https://forum.katalon.com/t/using-openwindow-https-www-flipboard-com/20600>\
**Category:** Web Testing\
**Tags:** katalon-recorder\
**Created:** [March 6, 2019, 9:03am UTC](https://forum.katalon.com/t/using-openwindow-https-www-flipboard-com/20600 "2019-03-06T09:03:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![hb7of9](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/hb7of9/32/2378_2.png) [@hb7of9](https://forum.katalon.com/u/hb7of9)\
**Post date:** [March 6, 2019, 9:03am UTC](https://forum.katalon.com/t/using-openwindow-https-www-flipboard-com/20600/1 "2019-03-06T09:03:06Z")

</div>

Using openWindow([https://www.flipboard.com/](https://www.flipboard.com/)) \<\<\< that is basically my code

#### [info] Executing: | openWindow | [https://flipboard.com/](https://flipboard.com/) | |

but it takes me to this page =\> “[https://www.katalon.com/](https://www.katalon.com/)” not to the link I want to go to ?

---

<div class="post-metadata">

**Author:** ![Mark\_Gibson](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/mark_gibson/32/1143_2.png) [@Mark\_Gibson](https://forum.katalon.com/u/Mark_Gibson)\
**Post date:** [March 6, 2019, 9:06am UTC](https://forum.katalon.com/t/using-openwindow-https-www-flipboard-com/20600/2 "2019-03-06T09:06:56Z")

</div>

See the answer from one of the developers here

> [@Why does Katalon connect to katalon.com before going to the URL in my script?](http://forum.katalon.com/t/why-does-katalon-connect-to-katalon-com-before-going-to-the-url-in-my-script/20026/8):
>
> JavaScript needs a normal active page to initiate the execution. “New tab” page or other special pages will not work. If you feel uncomfortable with the redirection to [katalon.com](http://katalon.com) you can preload the active tab with any website e.g. your company’s homepage or [google.com](http://google.com).

---

<div class="post-metadata">

**Author:** ![hb7of9](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/hb7of9/32/2378_2.png) [@hb7of9](https://forum.katalon.com/u/hb7of9)\
**Post date:** [March 6, 2019, 12:13pm UTC](https://forum.katalon.com/t/using-openwindow-https-www-flipboard-com/20600/3 "2019-03-06T12:13:32Z")

</div>

Thanks Mark – 🙂

my problem is that it goes to [katalong.com](http://katalong.com) and then nowhere else – I think it’s supposed to redirect to the actual requested page after launching [katalon.com](http://katalon.com) – right?

---

<div class="post-metadata">

**Author:** ![Mark\_Gibson](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/mark_gibson/32/1143_2.png) [@Mark\_Gibson](https://forum.katalon.com/u/Mark_Gibson)\
**Post date:** [March 6, 2019, 12:29pm UTC](https://forum.katalon.com/t/using-openwindow-https-www-flipboard-com/20600/4 "2019-03-06T12:29:30Z")

</div>

If you are just using `open` it will take you to the page you define.

```auto
open | https://www.flipboard.com/ | |

```

If you use `openWindow` you need to supply an id and then use the command `selectWindow` to switch to the new window that will be opened.

```auto
openWindow | https://www.flipboard.com/ | winID |
selectWindow | winID | |

```

---

<div class="post-metadata">

**Author:** ![hb7of9](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/hb7of9/32/2378_2.png) [@hb7of9](https://forum.katalon.com/u/hb7of9)\
**Post date:** [March 7, 2019, 10:46am UTC](https://forum.katalon.com/t/using-openwindow-https-www-flipboard-com/20600/5 "2019-03-07T10:46:36Z")

</div>

Hi Mark,

I have tried the second case here; I get the first case and that works fine 🙂  
The second though does not ☹

![Capture](https://europe1.discourse-cdn.com/katalon/optimized/2X/6/6c78a835d038c6c1b25c708a26cfbfc064644e72_2_690x40.png)

You will see that I have copied the coding from your example above, when I play those two lines, what happens is that openWindow does not open a new tab, which is what I want it opens an actual window. That window is akin to a pop up, which then just stays on the [katalon.com](http://katalon.com) page – nothing after that

I would like to open a list of URLs – so that it opens a new tab and url, then the next one and so forth.

I looked for newTab command or openTab but could not find either  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![Mark\_Gibson](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/mark_gibson/32/1143_2.png) [@Mark\_Gibson](https://forum.katalon.com/u/Mark_Gibson)\
**Post date:** [March 7, 2019, 10:55am UTC](https://forum.katalon.com/t/using-openwindow-https-www-flipboard-com/20600/6 "2019-03-07T10:55:31Z")

</div>

Ah, sorry, I should have shown the full test case for the second scenario  
You have to `open` a page first before calling `openWindow`

```auto
open | https://www.katalon.com/ | |
openWindow | https://www.flipboard.com/ | winID |
selectWindow | winID | |

```

Obviously you can use any URL for the first `open` command

---

<div class="post-metadata">

**Author:** ![hb7of9](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/hb7of9/32/2378_2.png) [@hb7of9](https://forum.katalon.com/u/hb7of9)\
**Post date:** [March 14, 2019, 7:37am UTC](https://forum.katalon.com/t/using-openwindow-https-www-flipboard-com/20600/7 "2019-03-14T07:37:26Z")

</div>

> [@Mark\_Gibson](#):
>
> winID

Hi Mark – thanks again for the code and help

I have re-created this and it works

thing is though, I am trying to open a new tab, not a new window, this opens another chrome window on top of my existing chrome browser – I don’t want that – I’d like to open the link in a new tab in my existing browser

I have included the image below where the browser can be seen in the background and then the new window which is opened on to of that.

 ![Capture](https://europe1.discourse-cdn.com/katalon/original/2X/c/c30e36918166087aa1c01c110691d19b38fe2be9.png)

Thanks again
