Web developers can now create cool drawing applications within web browsers using the new HTML5
In this recipe, we will automate a simple drawing application through the Selenium WebDriver action class for mouse movements. We will also implement an image comparison feature to test the drawing on a canvas.
Internet Explorer 9+, Firefox, Opera, Chrome, and Safari support the
Create a new test named
testHTML5CanvasDrawing for testing the
<canvas> element. We draw a shape by ...