Power Your Software Testing
with AI and Cloud
Supercharge QA with AI for Faster & Smarter Software Testing

In Selenium, you can create a new window by using the "window_handles" attribute, which returns the handles of all currently open windows. Then, using the “switch to.window()” method, you may go to the chosen window.
When you open a new browser window or tab, Selenium generates a new window handle for that window. The window handles attribute allows you to access and switch between these handles.
Here are different use cases of the window_handles attribute in Python:
KaneAI - Testing Assistant
World’s first AI-Native E2E testing agent.

Get 100 minutes of automation test minutes FREE!!