Back to Practice

Browser Windows

Browser Windows

New Tab

New Window

QA Automation Helper

Target IDsKey Element IDs

#tabButton
#windowButton

Advance Testing Tips

  • Window Handles: Automation tools assign unique handles to each window/tab.
  • Switching: Use driver.switchTo().window(handle) to interact with the new page.
  • Closing: Remember to close the new window/tab and switch back to the original handle to continue the test.