Hello,
we're using Ranorex 5.1.2 to test an iOS Application on iOs7.x. In this Application we have a table with some cells representing data records. When the user wants to delete one of the records, he has to slide the cell of the record to the left, after this action a delete button appears in that cell.
I added a swipe action to the recording module and made the following configuration:
Swipe Direction: left
Distance: 500
Swipe Duration: 500ms
Repository Item: <the table cell>
But this action does not do the expected swipe-action. It looks like a up or down swipe was made to the table.
How do I have to configure the swipe action to get it work?
Regards,
Patrick
Swipe Gestures on iOS not working as expected
- Patrick Hollerbach
- Posts: 32
- Joined: Thu Jan 02, 2014 4:00 pm
- Location: Frankurt, Germany
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Swipe Gestures on iOS not working as expected
Hello Patrick,
It seems like the swipe action is applied to the wrong item/container.
May I ask you to create a Ranorex snapshot of your application under test? Please upload the file to the forum or send it to [email protected]
Please point out which element is used for the swipe action.
Thanks,
Robert
It seems like the swipe action is applied to the wrong item/container.
May I ask you to create a Ranorex snapshot of your application under test? Please upload the file to the forum or send it to [email protected]
Please point out which element is used for the swipe action.
Thanks,
Robert
-
- Posts: 55
- Joined: Fri May 24, 2013 12:57 pm
Re: Swipe Gestures on iOS not working as expected
Hi Robert,
sorry, but Patrick and I are not allowed to send you a snapshot of the AUT.
It would be fine when you could post an excample how to work with the swipe function in iOS.
Do you have some more documentation for this function especially for the parameters.
Best regards,
Joe
sorry, but Patrick and I are not allowed to send you a snapshot of the AUT.
Can you please tell us which items/container could be used for a swipe gesture.Support Team wrote:It seems like the swipe action is applied to the wrong item/container.
It would be fine when you could post an excample how to work with the swipe function in iOS.
Do you have some more documentation for this function especially for the parameters.
Best regards,
Joe
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Swipe Gestures on iOS not working as expected
Hello Joe,
It’s difficult to suggest the use of an element/container without knowing how the structure of your application looks like.
Please let me illustrate the mentioned behavior based on the KeePass sample app.
Structure of the table: As you can see there is just a single “Database”(Cell) available.
If you now add a Swipe Gesture (left) to the Container 'UITableViewWrapperView' ... ... the Swipe action will not swipe the cell *.kdb to the left, but the swipe will be seen as a Swipe Up/Down as you mentioned in your post.
The Swipe action will be correctly executed when applying it to the Container 'UITableViewCellScrollView' or cell itself.
Please note that we highly recommend updating to our latest version (Ranorex 5.2).
Regards,
Robert
It’s difficult to suggest the use of an element/container without knowing how the structure of your application looks like.
Please let me illustrate the mentioned behavior based on the KeePass sample app.
Structure of the table: As you can see there is just a single “Database”(Cell) available.
If you now add a Swipe Gesture (left) to the Container 'UITableViewWrapperView' ... ... the Swipe action will not swipe the cell *.kdb to the left, but the swipe will be seen as a Swipe Up/Down as you mentioned in your post.
The Swipe action will be correctly executed when applying it to the Container 'UITableViewCellScrollView' or cell itself.
Please note that we highly recommend updating to our latest version (Ranorex 5.2).
Regards,
Robert
You do not have the required permissions to view the files attached to this post.
-
- Posts: 55
- Joined: Fri May 24, 2013 12:57 pm
Re: Swipe Gestures on iOS not working as expected
Hi Robert,
many thanks for your post.
Because of your recommendation I first updated to Ranorex 5.2.
After that I ran the test again but it does not work either.
The swipe Gesture to the right is executed but in the direction down.
So I changed the repository element direct on to the UITableViewCell-object and started the test run again. It produces the same result as above.
After that I changed the direction of the swipe from Right to Up(from 0° to 270°). I started the automation again and everything worked fine.
I have to mention that all my tests are executed in landscape-mode.
I rotate the iPad to portrait-mode and run the test again with the swipe direction Up.
The automation execute a swipe gesture in the direction Up.
Could it be that ranorex doesn't handle the device-orientation (portrait/landscape) for the swipe-gesture?
Best regards
Joe
many thanks for your post.
Because of your recommendation I first updated to Ranorex 5.2.
After that I ran the test again but it does not work either.
The swipe Gesture to the right is executed but in the direction down.
So I changed the repository element direct on to the UITableViewCell-object and started the test run again. It produces the same result as above.
After that I changed the direction of the swipe from Right to Up(from 0° to 270°). I started the automation again and everything worked fine.
I have to mention that all my tests are executed in landscape-mode.
I rotate the iPad to portrait-mode and run the test again with the swipe direction Up.
The automation execute a swipe gesture in the direction Up.
Could it be that ranorex doesn't handle the device-orientation (portrait/landscape) for the swipe-gesture?
Best regards
Joe
You do not have the required permissions to view the files attached to this post.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Swipe Gestures on iOS not working as expected
Hello Joe,
Ranorex handles the device-orientation for the swipe-gesture, so this should not cause the issue. Again, we are not able to reproduce the issue on our side
Regards,
Robert
Ranorex handles the device-orientation for the swipe-gesture, so this should not cause the issue. Again, we are not able to reproduce the issue on our side

Regards,
Robert
-
- Posts: 55
- Joined: Fri May 24, 2013 12:57 pm
Re: Swipe Gestures on iOS not working as expected
Dear Robert,
I tried to reproduce my problems in the KeePass Sample-App.
For that I created a new testcase "Recording2.rxrec" with the following test-steps:
1. add a new KeePass-file
2. make a swipe to the left for deleting the created entry
3. tap on the now displayed delete-button.
I run the test for all orientations: The test for the orientations "Portrait" and "Landscape-Right" were successfull but the tests for the orientations "Upside Down" and Landscape-Left" failed.
I added the RxProject for the KeePass-Sample and a zip-file with the reports in pdf-format.
I hope that this will help you.
Best regards.
Joe
I tried to reproduce my problems in the KeePass Sample-App.
For that I created a new testcase "Recording2.rxrec" with the following test-steps:
1. add a new KeePass-file
2. make a swipe to the left for deleting the created entry
3. tap on the now displayed delete-button.
I run the test for all orientations: The test for the orientations "Portrait" and "Landscape-Right" were successfull but the tests for the orientations "Upside Down" and Landscape-Left" failed.
I added the RxProject for the KeePass-Sample and a zip-file with the reports in pdf-format.
I hope that this will help you.
Best regards.
Joe
You do not have the required permissions to view the files attached to this post.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Swipe Gestures on iOS not working as expected
Hello all,
The issue was reproducible on our side. We will try to resolve the issue as soon as possible.
Thank you for your patience.
Regards,
Robert
The issue was reproducible on our side. We will try to resolve the issue as soon as possible.
Thank you for your patience.
Regards,
Robert