close active tab chrome selenium python code example
Example 1: close chrome selenium python
driver.quit()
Example 2: close tab selenium python
There's nothing easier and clearer than just running JavaScript.
Open new tab: driver.execute_script("window.open('');")