I'm writing a web app that uses the Leap Motion as a controller through javascript. My problem is that when I go to do selenium testing, even if the Leap device is disconnected, the controller keeps grabbing empty frames. This makes it very difficult, if not impossible, to simulate leap pointables and gestures properly because half the time it's reading "no pointables here!"
I really don't want to add a "testing scenario" or "if(testing)" to the application - the point is to test the code that will run at release, not a special case. If I could just disable the leap controller from selenium, feed in fake/generated frames, and then only run my own functions, that would be best. I've been combing through the leap documentation, and I haven't found anything that legitimately stops the controller from reading frames. Anyone have any ideas?