I am trying to close the "pop-up" that appears when you click on "view flight details" on this page using Python Selenium. For some reason whatever I try I can't get it to close. I've tried clicking on the x and the close button and using CLASS_NAME and XPATH. Can anyone see what I am doing wrong Eg WebDriverWait(driver, timeout=20).until(EC.presence_of_element_located((By.CLASS_NAME, "buttons__button buttons__primary buttons__fill ModalRedesign__applyButton"))).click() Continue reading...