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.
It’s probably a good idea to read Browser, Context and Page, 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 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.