I'm quite new in Selenium in Python. This time I have a problem with clicking on an element (This is a closing button).
<div class="CloseButton_Background__27knc">
<svg class="MuiSvgIcon-root CloseButton_Icon__7wksG" focusable="false" viewBox="0 0 24 24"
aria-hidden="true" style="font-size: 36px;">
<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59
19 19 17.59 13.41 12 19 6.41z"></path></svg></div>
What I do first is: I'm looking for an element on the site:
closeButton = self.driver.find_elements_by_xpath('//div[@class="CloseButton_Background__27knc"]/*[name()="svg"][@class="MuiSvgIcon-root CloseButton_Icon__7wksG"]')
The element is found on the page. And then I try to call click ()
method on it and I get this error:
selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable
I'm waiting for the button to be visible. Please help! Thanks!