# Can you tell me whether we should use web switch window in this case?

**URL:** <https://community.automationedge.com/t/can-you-tell-me-whether-we-should-use-web-switch-window-in-this-case/3727>\
**Category:** Get Help & Discuss\
**Tags:** rpa, process-studio\
**Created:** [June 22, 2021, 6:22am UTC](https://community.automationedge.com/t/can-you-tell-me-whether-we-should-use-web-switch-window-in-this-case/3727 "2021-06-22T06:22:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shubhamautomation](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.automationedge.com/shubhamautomation/32/604_2.png) [@Shubhamautomation](https://community.automationedge.com/u/Shubhamautomation)\
**Post date:** [June 22, 2021, 6:22am UTC](https://community.automationedge.com/t/can-you-tell-me-whether-we-should-use-web-switch-window-in-this-case/3727/1 "2021-06-22T06:22:17Z")

</div>

Hello, I want to capture the details of all villa in particular location such as **lonavla** through the **airbnp website**.  
I search the lonavla in airbnp site and get the result. When I click on first result (**see snapshot)**

it open’s new tab and this new tab contain the all the information that I want extract.

 ![snap1](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/1X/e076c85701f10ace26875213d6b14601a3096f42.jpeg)  
 ![snap2](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/1X/01d535c900c2a29b941387ec9f7226a7dcfb22cd.jpeg)

When I am trying to extract this using xpath it gives error unable to find element. Although it is current opened tab.  
when I tried with **web switch window** it is able to extract.

As it opens in newtab and becomes the current working tab then it should be able to extract but was not able to extract.  
so in this case it is mandatory to use web switch window?

---

<div class="post-metadata">

**Author:** ![rakesh.kale](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@rakesh.kale](https://community.automationedge.com/u/rakesh.kale)\
**Post date:** [June 23, 2021, 4:21am UTC](https://community.automationedge.com/t/can-you-tell-me-whether-we-should-use-web-switch-window-in-this-case/3727/2 "2021-06-23T04:21:27Z")

</div>

Hi Shubham,

Yes, you have to use the **Web Switch Window** to extract the data from the newly opened tab/window.

When you click on any element which results in a new tab/window, the selenium cursor didn’t move and still points to the old window. To move the cursor to a new tab/window you have to use **Web Switch Window**.
