I have the following code
driver = webdriver.Chrome(executable_path=r'/home/ruben/Documentos/Robô_Neobux/chromedriver')
driver.get(Url)
driver.maximize_window()
time.sleep(2)
Login=driver.find_element_by_id("Kf1").send_keys(Nome_De_Utilizaor)
Login=driver.find_element_by_id('Kf2').send_keys(Passoword)
time.sleep(15)
Login=driver.find_element_by_id('botao_login')
Login.click()
time.sleep(10)
forex = driver.find_element_by_id('icon_6')
forex.click()
time.sleep(5)
forex = driver.find_element_by_id('i6')
forex.click()
time.sleep(35)
forex.close()
I want to use the close in forex but give me WebElement not fund and I have tried using send_keys (keys.CONTROl + "W") also does not help me close the page without the driver.quit or close