Speaking at the Selenium Conference 2011 in San Francisco alongside Dave Hunt a QA analyst from Mozilla, we gave a presentation on how Selenium can be used to test canvas based applications. The presentation to a crowd of 300 attendees opened the first annual Selenium conference and was very well received.
Due to the nature of canvas providing no footprint in the DOM it is difficult to use conventional methods to automate testing. Using an example of Dale Harvey’s HTML5 canvas game Helicopter we proved that with some extra thought, attention and careful programming it was possible to automate testing of the canvas element, and perhaps more importantly possible to fly the 8 bit helicopter through the narrowing cave for a better chance of survival.
Enjoyed this post? Follow me on Twitter!