# How can we access all the elements in sub window?

**URL:** <https://forum.robotframework.org/t/how-can-we-access-all-the-elements-in-sub-window/6265>\
**Category:** Robot Framework\
**Created:** [28 September 2023 06:39 UTC](https://forum.robotframework.org/t/how-can-we-access-all-the-elements-in-sub-window/6265 "2023-09-28T06:39:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![udaykumar\_amalakanti](https://avatars.discourse-cdn.com/v4/letter/u/77aa72/32.png) [@udaykumar\_amalakanti](https://forum.robotframework.org/u/udaykumar_amalakanti)\
**Post date:** [28 September 2023 06:39 UTC](https://forum.robotframework.org/t/how-can-we-access-all-the-elements-in-sub-window/6265/1 "2023-09-28T06:39:42Z")

</div>

Hi Team

I need your help on this issue. There is page and in that when we click on login button, we are redirecting to sub window in same page, But some of the elements unable to access while running robot test cases. In manual test those were working fine.

---

<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:** [28 September 2023 08:13 UTC](https://forum.robotframework.org/t/how-can-we-access-all-the-elements-in-sub-window/6265/2 "2023-09-28T08:13:19Z")

</div>

Hi Udaykumar,

Which library are you using? It sound like your page has frames in it, so you will need to tell the library to select the elements inside the frame. The syntax for doing this is different in each library.

Dave.

---

<div class="post-metadata">

**Author:** ![udaykumar\_amalakanti](https://avatars.discourse-cdn.com/v4/letter/u/77aa72/32.png) [@udaykumar\_amalakanti](https://forum.robotframework.org/u/udaykumar_amalakanti)\
**Post date:** [28 September 2023 08:36 UTC](https://forum.robotframework.org/t/how-can-we-access-all-the-elements-in-sub-window/6265/3 "2023-09-28T08:36:28Z")

</div>

Hi Dave  
Thanks for your response, I’m using IntelliBot #patched(Plug-in) and SeleniumLibrary  
While running test cases I need to validate different warning messages. In manual testing everything was fine, but when using robot automation those warnings are not appearing.

Udaykumar

---

<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:** [28 September 2023 09:01 UTC](https://forum.robotframework.org/t/how-can-we-access-all-the-elements-in-sub-window/6265/4 "2023-09-28T09:01:12Z")

</div>

Hi Udaykumar,

In SeleniumLibrary use [Select Frame](https://robotframework.org/SeleniumLibrary/SeleniumLibrary.html#Select%20Frame) to switch to the frame first then interact with the element, you can use [Unselect Frame](https://robotframework.org/SeleniumLibrary/SeleniumLibrary.html#Unselect%20Frame) to return to the main window if you need to.

Depending if the “warning” messages are html or not, if html just use the standard keywords to get their text, if they are not html you might need [Handle Alert](https://robotframework.org/SeleniumLibrary/SeleniumLibrary.html#Handle%20Alert) and related Alert keywords

Dave.
