About JavaScript Canvas Page

Draw on the canvas using JavaScript commands.

About Page

The UI shows a canvas with some input fields.

Selecting the various values in the input fields will trigger a JavaScript command that will draw shapes on the canvas.

Each command will be shown in the list on the right of the canvas.

JavaScript Instructions

Commands:

Note:

Automating UI

The form itself is possible to automate using simple locators.

JavaScript Hacking

Because the underlying commands are hooked into the dom it is possible to run the commands from the JavaScript console to create shapes on the canvas.

Exploratory Testing

Exploratory Testing might highlight usability improvements or missing functionality that would aid the user.

Suggested Exercises

Help keep this site free by joining our Patreon Membership site. Membership costs as little as $1 a month and includes access to exclusive e-books and online training courses.