Question: how u will switch to different windows?
Answer: Open Firefox browser. Navigate to the demo site. Get current window handle and print it to console. Locate 'Click to open a new browser window! ...  Click the button to open the new window. Get the window handles of both the open windows. Loop through both handles. Switch to the new window with the handle's reference.