I'm trying to close the pop-up by trying to simulate a click on the body of the web page. It is possible to locate the close button and close it. However, I am trying to close the pop-up as there can be 1-3 pop-ups in some pages and all can be closed with a single click on the body. (easier to automate) Is there a way to simulate a body click to close that pop-up.
I have tried :
driver.find_element_by_tag_name('body').click()
driver.find_element_by_tag_name('div').click()
driver.execute_script("document.getElementByTagName('body').click()")
None of them seem to work. All were performed by a sleeping thread and/or even an implicit wait
Url of page: https://www.mryum.com/sookthaikitchen/pickup/main-menu