As mentioned, is there a way to send global ESC key to close popup(CSS MODAL Window)? I tried following but did not work:
ESC
driver.find_element_by
try also this it will go back to the previous driver u had
driver.back()