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
I code my Selenium Python scripts in the AppRobotic Personal editor, and just insert its Windows macro functionality in between Selenium actions.
import win32com.client x = win32com.client.Dispatch("AppRobotic.API") from selenium import webdriver x.Type("{ESCAPE}")