Long and short when I try to use
return this.driver.findElement(By.css("div[class*='img']")).click();
I get an error Uncaught WebDriverError: unknown error: Element is not clickable at point (525, 889). Other element would receive the click:...
How can I click anyway and let the “other element” get clicked? I am using webdriverjs.
The rationale for this is basically the website I am testing causes some bizarre reactions that somehow obscure the connection. Basically, instead of linking a link to an image, the whole image is covered with a transparent field that connects you somewhere (don't ask me why). When you “click on an image”, you don’t actually click on the image, but from the point of view of the user they are one and the same.
When I used webdriverIO, I could say
browser.moveToObject("img");
browser.leftClick();
.
this.driver.findElement(By.css("div[class*='img']"));
return this.driver.actions().click().perform();
.
, , .