I try to close the window, in Google Chrome, but get this error
from selenium.webdriver.common.keys import Keys
browser.find_element_by_tag_name('body').send_Keys(Keys.CONTROL + 'w')
but get this error:
AttributeError: 'WebElement' object has no attribute 'send_Keys'