Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Collaborator12 opened this issue Jun 6, 2018 · 3 comments
Closed

Comments

@Collaborator12
Copy link

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
Copy link
Author

swipe

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

@Collaborator12
Copy link
Author

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

@Collaborator12 Collaborator12 changed the title Help needed to manually trigger Swipe gesture in E2E tests Help needed to manually trigger Swipe gesture on DIV in E2E tests Jun 6, 2018
@lathonez
Copy link
Owner

lathonez commented Jun 6, 2018

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.

@lathonez lathonez closed this as completed Jun 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants