python selenium command to close the current webpage code example Example: how to close a webpage using selenium driver python driver.quit()