Answers for "how to close windows in selenium python without quitting the browser"

0

how to close windows in selenium python without quitting the browser

for handle in driver.window_handles:
    driver.switch_to.window(handle)
    driver.close()
Posted by: Guest on March-01-2021

Code answers related to "how to close windows in selenium python without quitting the browser"

Python Answers by Framework

Browse Popular Code Answers by Language