I created a web application and would like to write interactive automation tests on desktop browser such as Chrome emulation mode, is there any existing JavaScript libraries that can fire touch events such as single tap, double tap, press and hold?
I've investigated touch-emulator.js from Hammer.js group, what it does is to convert mouse events to touch events. However, I find the environment it provides is not a true touchy environment that there is some difference that actually makes the web application behave differently compared to a true mobile browser.
Here is one test case:
- Load the web application in desktop browser (e.g. Chrome emulation mode)
- Use the JS library to fire single tap event on login button (e.g. loginButton.singleTap())
- Validate the result
Thanks, Victor
Aucun commentaire:
Enregistrer un commentaire