In my project, I need to click on an image drawn in the canvas. I am able to do it with coordinates. But that is not the right way to do, because each time different images with different size, gets loaded.
So sometimes there will be empty space around the image on canvas depending on the height and width of that image. And this image cannot be located through DOM.
Is there any way for Selenium to find the boundaries of these images which gets loaded(dynamic)? So that I can mouse click within the image.