Automating Canvas Applications
summary
Automates a HTML5 canvas game (Helicopter) with Selenium WebDriver in Java by adding explicit automation hooks and a single gameData object to avoid latency, visualizing decisions with a HUD crosshair and field‑of‑vision overlay, and iterating PID‑style heuristics to handle momentum and obstacles. Two fast smoke tests assert crashes into ceiling or floor (altitude 90), long runs produce a best automated score >900m, code and hooks live at Selenicopter on GitHub.
AI-written summary · about
chapters (10)
- 0:00Intro
- 0:49What is Canvas?
- 1:47The Wilderness Downtown
- 2:1020 Things I Learned
- 2:27Pirates Love Daisies
- 5:16Inside Information
- 6:45Flight School
- 10:30Visual Feedback
- 14:18Crash Testing
- 15:46How can we do this?
related talks
38mRip-off the Canvas: Turning 2D Games into Testable Websites
42mDoing wonders with #webdriver
43mAutomated Performance Testing With WebDriver
23mOptimizing HTML5 Games: 10 Years of Learnings
37mAutomated Performance Testing With WebDriver
37mHacking Selenium
48mChallenges in UI Automation and How to Solve Them
27mKnowing your automation
