lathonez / clicker

Ionic 2 + @angular/cli Seed Project : Angular2 + Typescript + Karma + Protractor + Travis
http://lathonez.com/2018/ionic-2-unit-testing/
MIT License
430 stars 137 forks source link

Help needed to manually trigger Swipe gesture on DIV in E2E tests #287

Closed Collaborator12 closed 6 years ago

Collaborator12 commented 6 years ago

Hi,

I am very new to writing E2E tests using protractor for Ionic apps that involve triggering gestures like Swipe on a div.

Following are my questions

1) How can we trigger a Swipe ( left or right ) gesture on a div so that it can be expanded or collapsed horizontally ??

2) Can such a protractor test execute on Chrome browser on a desktop computer or will need to be executed through Appium on actual device ??

3) Can you please provide me code snippets which will help me understand how to do it or how to proceed with it ?

I am not able to find any thing on the internet.

I have tried this post

swipe and click a button protractor

But it's just not working for me & I am not getting any error or effect of it.

If you have done something like this before, then kindly help me please please.

I have posted my question on StackOverflow.

https://stackoverflow.com/questions/50714049/ionic-3-protractor-trigger-swipe-gesture-e2e-tests-should-run-in-chrome-brow

Collaborator12 commented 6 years ago

swipe

This is what I want to test using E2E tests written using Protractor.

Collaborator12 commented 6 years ago

@lathonez Any help or pointers from you or any one else will be of great help.

lathonez commented 6 years ago

Closing as per #191. I have replied to you on Stack Overflow and upvoted your question. Personally I have not has experience with swipe gestures on protractor.