# How to manipulate elements in another tab

**URL:** <https://forum.robotframework.org/t/how-to-manipulate-elements-in-another-tab/7816>\
**Category:** Browser\
**Created:** [17 September 2024 10:27 UTC](https://forum.robotframework.org/t/how-to-manipulate-elements-in-another-tab/7816 "2024-09-17T10:27:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabrowspeba](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/gabrowspeba/32/4168_2.png) [@gabrowspeba](https://forum.robotframework.org/u/gabrowspeba)\
**Post date:** [17 September 2024 10:27 UTC](https://forum.robotframework.org/t/how-to-manipulate-elements-in-another-tab/7816/1 "2024-09-17T10:27:48Z")

</div>

Hey Guys, I’m new to browser library.

In some step of my project, it pops-up a **new window** that I need to manipulate.  
This new window have very easy elements to locate, but it seems that robot is trying to get elements in the background page (the main one).

Fyk: this new windows pop-up, I need to input mobile number, mobile code and click a button, then this window will close and we continue on the main window.

---

<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:** [17 September 2024 11:08 UTC](https://forum.robotframework.org/t/how-to-manipulate-elements-in-another-tab/7816/2 "2024-09-17T11:08:19Z")

</div>

Hi Gabriel,

It’s probably a good idea to read [Browser, Context and Page](https://marketsquare.github.io/robotframework-browser/Browser.html#Browser%2C%20Context%20and%20Page), so you know what the meaning of each is in the context of Browser Library.

From there we can find:

> A **page** does contain the content of the loaded web site and has a browsing history. Pages and browser tabs are the same.

So what you want is the [Switch Page](https://marketsquare.github.io/robotframework-browser/Browser.html#Switch%20Page) keyword with the id of `NEW` to switch to the newly opened tab, then you can act on the elements in the new page.

Also don’t forget to capture the identifying data of the page your leaving from `Switch Page` so you can go back to it when you’re finished with the pop-up window if you need that for your test case.

Hope that helps,

Dave.
