Skip to main content
Canvas and game testing

Canvas games, tested the way a player plays

Wopee.io's agent plays canvas and WebGL games with keys and on-screen clicks, and a key press counts only if the game reacted. A pass it can't prove doesn't show green.

Before

Balance 100.00

After

Balance 99.80

  • Press Space. The frame changed. The spin counts.
  • Press ArrowUp. Nothing changed. Reported as no effect, the sequence stops.
  • Check the balance. Read from the frame after the spin: 99.80.

Schematic of how each key press is judged.

Short answer

Can you automate testing of canvas and HTML5 games?

Yes. A canvas draws the game as pixels, so a test script finds no buttons or text to select. Wopee.io's AI agent plays the game with keys and clicks by screen position, compares the game frame before and after every key press, and asserts what the player sees, such as the balance after a spin. A press the game ignored is reported as having no effect, and a pass the agent can't prove is flagged instead of shown as green.

Last checked: 1 December 2026

A canvas gives a test nothing to hold on to

  • Reels, tables and buttons are pixels, not page elements

  • A key press can reach the browser while the game ignores it

  • Games and wallets run inside iframes from other domains

  • Banners and pop-ups come and go mid-test

A script can still click and press keys. It can't tell whether the game reacted.

How it works

Play the game, then prove what happened

The agent drives the game like a player and checks every step against the screen.

Keys first

The agent plays with the keys a player uses, with a hold duration for press-and-hold controls such as autoplay.

Clicks by screen position

When a control has no key, the agent clicks its position on screen, given as a share of the viewport so it survives resolution changes.

Each key press checked

The game frame is compared before and after every press, with idle animation masked out. A press that changes nothing is reported as having no effect, and a sequence stops there. Changelog

Iframes from other domains

Games, wallets and payment forms inside cross-origin iframes resolve without manual frame switching in your test steps. Changelog

Checks on what the player sees

Visual assertions read the balance, the stake or a win line from the screen after the action, not from an earlier frame.

No proof, no pass

Integrity gates check every run for an input that never reached the game or an assertion that never ran. Such a pass is flagged in amber, or becomes Incomplete when you switch a project to Enforce. See it on a real run

Learned on real games

What testing real canvas games taught us

These checks came out of pilots on slot games and the player platforms around them. Each one is now part of the agent or of how we write the tests.

  1. Delivered is not done

    Ten arrow presses could reach the browser while the stake on screen never moved. That is why every key press is checked against the frame.

  2. The key has to reach the game's own frame

    A game nested several iframes deep ignores a key sent to the page around it. Keys go into the frame the game runs in.

  3. Read the screen after the action

    A balance read from the frame before the spin gives a wrong verdict. Visual checks wait for the frame the action produced.

  4. Assert the record, not the banner

    Deposit and withdrawal banners disappear within seconds. A test that checks the account history afterwards stays reliable.

Beyond games

Any UI drawn on a canvas

The same keys, screen-position clicks and visual checks apply wherever the interface is pixels rather than page elements.

Charts and dashboards

Bars, lines and tooltips drawn on a canvas.

Maps

Pins, layers and panning on a rendered map.

Editors and whiteboards

Shapes, drag and drop, and keyboard shortcuts.

Limits

What it does not do

  • It does not test RNG, RTP or game fairness. That certification stays with accredited labs.
  • Use play-for-fun mode or test accounts, never real money.
  • Card payments that ask for a one-time code need test cards or a flow without the code.
  • Split long sequences, such as many spins in a row, into several shorter tests.
FAQ

Questions about canvas testing

Can Wopee.io test HTML5 canvas and WebGL games?

Yes, the parts a player sees and controls. The agent plays with keys and clicks by screen position, checks that the game reacted to each key press, and asserts values such as the balance or the stake from the screen.

Why keys before clicks?

A key press can be checked against the game frame before and after. A click on a position can land without hitting the control under it, so the agent uses a screen-position click only when a control has no key.

Does it work when the game runs in an iframe from another domain?

Yes. Games, wallets and payment forms inside cross-origin iframes resolve automatically, without manual frame switching in your test steps.

What if the agent cannot prove a spin happened?

The run does not show a clean pass. In the default Report only mode it is flagged for review in amber with the gate named; in Enforce mode the pass becomes Incomplete.

Does it replace game certification?

No. Wopee.io tests that the game UI, the player flows and the responsible-gaming controls render and work. RNG, RTP and fairness certification stays with accredited labs.

More: AI testing for iGaming · Guide: test canvas apps and games · Agent tools and assertions in the docs

Run a pilot on one of your games

We pick a game and its player flows with you, and you see every verdict with its proof.