close

how to close Python selenium webdriver window

Hello Guys, How are you all? Hope You all Are Fine. Today We Are Going To learn about how to close Python selenium webdriver window in Python. So Here I am Explain to you all the possible Methods here.

Without wasting your time, Let’s start This Article.

Table of Contents

how to close Python selenium webdriver window?

  1. how to close Python selenium webdriver window?

    In python using chromedriver, I quit Chrome processes with:
    driver.close()

  2. close Python selenium webdriver window

    In python using chromedriver, I quit Chrome processes with:
    driver.close()

Method 1

In python using chromedriver, I quit Chrome processes with:

driver.close()

Method 2

For Python and chromedriver I’ve found these two methods useful (mind the difference):

driver.close() – closes the browser active window.

driver.quit() – closes all browser windows and ends driver’s session/process.

Summery

It’s all About this issue. Hope all Methods helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which Method worked for you? Thank You.

Also, Read