Sorry, this video is for subscribers only.

Click here to subscribe!

Method Overloading

Our tests allow us to trigger mouse and touch events with coordinates relative to a triggering element. But in some cases, we want to use a different coordinate system. To allow that, we allow our event triggering functions to take an HtmlCoordinate instead. This is called “method overloading” in other languages.

comments powered by Disqus