Every element that I want to click changes the web-page by creating more elements. When I click the first, no problem. On the second element that has to be clicked, an ElementClickInterceptedException
is raised, because the element has changed positions because of the first clicking. How do I click all elements without exceptions?
This is my code:
elements = driver.find_elements_by_css_selector('div.something')
for i in elements:
i.click()
that brings up this error:
selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted:
Element <div class="something">...</div> is not clickable at point (5, 5). Other element would
receive the click: <div class="another_thing">...</div>