Tabs
Selenium and Playwright don't distinguish a "window" from a "tab" —
both are just another handle or Page in the same list. What's
different here is how they open (a real link, several at once) and
how you address them: by index in that list, rather than by
diffing against an "original" handle. Note: your browser's
popup blocker may need to allow this site for the script-opened tabs below.
Multiple Tabs
Not opened yet
How to switch between tabs by index
Close a Specific Tab
Not opened yet
How to close one tab and switch to another
Open a Brand New Tab
No button here — Selenium and Playwright can open a blank tab entirely on their own, with no page interaction required to trigger it.
How to open a new tab yourself