My web application is doing some SVG drawings, so Selenium tests are trying to validate if all is drawn properly.
My problem is that Selenium cannot simulate the click on PATH element (which is part of SVG). Element cableLine2 is found but cableLine2.Click()
gives error:
Unexpected error. Element is not clickable at point
> (1089.0499877929688, 293.73333740234375). Other element would receive
> the click: <svg style="top: -53.2px;" class="..."
> width="1366" height="659"
> xmlns:xlink="http://ift.tt/PGV9lw"></svg>
Full Selenium code is:
var cableLine2 = webDriver.FindElement(By.CssSelector("path[id='" + pathId + "']"));
action.MoveToElement(cableLine2);
cableLine2.Click();
Aucun commentaire:
Enregistrer un commentaire