Goal:
I want to click the body by below code ;
WebDriverWait(driver,1).until(EC.element_to_be_clickable((By.XPATH, '//body'))).click()
Problem :
My solution needs to be flexible and in case that there is an overlay the click gets intercepted and it throws an error ;
Message: element click intercepted: Element <body>...</body> is not clickable at point (502, 337).
Other element would receive the click: <div class="_4xvap4u"></div>
Question :
I searched for ages how to achieve to "allow the click" and in this case click the other element which the error displays.
So instead of my orginal click (body) i want to continue in case it's intercepted and click the element thats overlays the body (div / iframe which the error displays). I need this to be flexible so whatever is overlaying and would receive the click (div / iframe /modal / etc)