when I attempt to click a button located behind a popup menu I receive the following error message.
*** selenium.common.exceptions.ElementClickInterceptedException: Message: Element <input id="submitButton" class="search-button icon-search active" type="submit"> is not clickable at point (729.2000122070312,22) because another element <div id="monetate_lightbox_mask" class=""> obscures it
This error message is able to identify the name of what is blocking my click
How can I get this name (as an element) so that I can make modifications such as,
element = <div id="monetate_lightbox_mask" class="">
browser.execute_script("""var element = arguments[0]; element.parentNode.removeChild(element);""", element)
The wait function is not applicable as this popup does not go away. I have tried webdriver.ActionChains, but it doesn't not solve this issue