My page has an accordion. When I try to click the element, I get the error: "is not clickable at point (741, 503). Other element would receive the click". I feel this is because the elements position has changed from the previous accordion panel opening.
I've tried all the javascript and xpath solutions mentioned.
Code is nothing special:
driver.FindElement(By.Id("FirstPanel")).Click();
// click some things
// do an assert
driver.FindElement(By.Id("NextPanel")).Click(); <-- this is where it fails
Actual message (slightly redacted):
Message: OpenQA.Selenium.ElementClickInterceptedException : element click intercepted: Element
<h4 id="MyElementId" data-toggle="collapse" data-target="#TargetName" style="cursor: pointer; color:#60a531;" class="">...</h4>
is not clickable at point (741, 503). Other element would receive the click:<div id="AnotherId">...</div>
(Session info: chrome=75.0.3770.142)
tag DID contain the other element.
– Tom Lynch Aug 09 '19 at 11:58