Bug 35438 - Xamarin.UITest.Android.AndroidApp.SwipeLeft/Right do not take any parameters
Summary: Xamarin.UITest.Android.AndroidApp.SwipeLeft/Right do not take any parameters
Status: RESOLVED ANSWERED
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: unspecified
Hardware: PC Other
: --- normal
Target Milestone: ---
Assignee: glenn.wilson
URL:
Depends on:
Blocks:
 
Reported: 2015-10-31 13:55 UTC by Dimitar Dobrev
Modified: 2015-12-08 18:41 UTC (History)
6 users (show)

Tags: BZCU
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED ANSWERED

Description Dimitar Dobrev 2015-10-31 13:55:26 UTC
Unlike their iOS counterparts, these methods take no indication which element should be swiped and are therefore useless.
Comment 1 Dimitar Dobrev 2015-11-26 07:29:28 UTC
It's been almost a month, could you please at least comment? Without a way to point out what to swipe you might as well remove these methods.
Comment 2 glenn.wilson 2015-12-07 23:18:57 UTC
The parameter less SwipeLeft() and SwipeRight() are generic actions. 

For more specific operations you can use DragCoordinates (Single fromX, Single fromY, Single toX, Single toY). This can be combined with queries to calculate specific values for coordinates in the given situation, device, etc.
Comment 3 Dimitar Dobrev 2015-12-08 00:31:46 UTC
I know I can but it's unreliable. What does it mean that they are "generic actions"? Are they created this way at the OS level? Because if they are not, it can be done as it has been in the iOS version of UITests.
Comment 4 glenn.wilson 2015-12-08 18:41:31 UTC
Moved this to Xamarin Test Cloud Ideas & Feature Requests Portal:
https://testcloud.ideas.aha.io/ideas/XTA-I-44
and created a matching internal feature request.