nightwatchjs / nightwatch

Integrated end-to-end testing framework written in Node.js and using W3C Webdriver API. Developed at @browserstack
https://nightwatchjs.org
MIT License
11.78k stars 1.31k forks source link

Touch Implementation #156

Closed pyrossh closed 9 years ago

pyrossh commented 10 years ago

Any ideas on implementing touch and scroll events that are likely used to test mobiles apps from the web driver /session/:sessionId/touch/up /session/:sessionId/touch/scroll

right now i'm trying to use mouseButtonDown, mouseButtonUp and moveTo to simulate it but it doesn't seem to be working?

beatfactor commented 10 years ago

Touch events are not support yet, I can add them on the roadmap for the next version.

jskulski commented 10 years ago

Just want to throw in support for touch events. Thanks!

Strat1987 commented 10 years ago

I'd also appreciate support for touch events

jeffpowrs commented 9 years ago

+1 for touch events.

anisa07 commented 9 years ago

+1 for touch events

pyrossh commented 9 years ago

Has anyone tried wd.js? They seem to support touch events like these. But I don't know whether they actually support touch events in the webbrowser. The other way to go is use jquery to simulate them.

And maybe consider appium.

argyleink commented 9 years ago

wait, this is closed? are touch events supported or is there a feature bug logged still?

pyrossh commented 9 years ago

Well I think It might be non-trivial to implement/simulate touch events as I had to try to do that for a mobile app.. It might take a lot of effort to simulate the api's and maybe not all browsers may support them .. So I think the best alternative would be to use appium and wdjs. If you still think this should be a feature request you can reopen this.

argyleink commented 9 years ago

wdjs doesnt support the touch protocols either =) https://github.com/admc/wd/blob/master/doc/jsonwire-unsupported-mapping.md

and appium is overkill for me since i'm only testing mobile web, nothing native. but i do appreciate the suggestion!

adylevy commented 8 years ago

Why can't we just add support according to the Selenium protocol ? https://code.google.com/p/selenium/wiki/JsonWireProtocol#POST_/session/:sessionId/touch/click

ghost commented 8 years ago

Any news on this? I think this is pretty important in 2016.

aril-spetalen commented 8 years ago

I'd also really love to see touch events available in nightwatch. Sadly, I haven't managed to effectively test my application behaviour on mobile devices with nightwatch yet..

industral commented 8 years ago

@adylevy because nightwatch uses selenium server that doesn't support it. I've added here https://github.com/industral/nightwatch/compare/master...touch

psylence303 commented 8 years ago

@industral great job!

cepm-nate commented 4 years ago

So, as of 2019, are there any plans to integrate this into nightwatch officially?