summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Android.UITests/PlatformQueries.cs
diff options
context:
space:
mode:
authorRui Marinho <me@ruimarinho.net>2016-06-24 16:05:42 (GMT)
committerGitHub <noreply@github.com>2016-06-24 16:05:42 (GMT)
commitb15ee30765184944d2adf0917de1e6d4b5454853 (patch)
tree9321416be359b9ee668508d22105e9fc339dccfd /Xamarin.Forms.Android.UITests/PlatformQueries.cs
parente5dd925ee5efe8d931aa8f1cbfc13d793faee567 (diff)
downloadxamarin-forms-b15ee30765184944d2adf0917de1e6d4b5454853.zip
xamarin-forms-b15ee30765184944d2adf0917de1e6d4b5454853.tar.gz
xamarin-forms-b15ee30765184944d2adf0917de1e6d4b5454853.tar.bz2
[UITest] Update to 1.3.8, remove old projects (#240)
* [UITests] Update to Xamarin UItest 1.3.8 * Remove legacy UITest projects * Remove issue that uses reference to controls * Update Xamarin.Forms.Core.iOS.UITests.csproj * Update Xamarin.Forms.Core.Android.UITests.csproj
Diffstat (limited to 'Xamarin.Forms.Android.UITests/PlatformQueries.cs')
-rw-r--r--Xamarin.Forms.Android.UITests/PlatformQueries.cs111
1 files changed, 0 insertions, 111 deletions
diff --git a/Xamarin.Forms.Android.UITests/PlatformQueries.cs b/Xamarin.Forms.Android.UITests/PlatformQueries.cs
deleted file mode 100644
index 0b82694..0000000
--- a/Xamarin.Forms.Android.UITests/PlatformQueries.cs
+++ /dev/null
@@ -1,111 +0,0 @@
-using System;
-using Xamarin.UITest;
-using Xamarin.UITest.Android;
-using Xamarin.UITest.Queries;
-using NUnit.Framework;
-using System.Threading;
-
-namespace Xamarin.Forms.UITests
-{
- public class iOSUiTestType
- {
- public iOSUiTestType ()
- {
-
- }
- }
-
- public static class PlatformQueries
- {
- public static Func<AppQuery, AppQuery> AbsoluteGalleryBackground = q => q.Raw ("xamarin.forms.platform.android.BoxRenderer parent xamarin.forms.platform.android.RendererFactory_DefaultRenderer index:0");
- public static Func<AppQuery, AppQuery> ActivityIndicators = q => q.Raw ("ProgressBar");
- public static Func<AppQuery, AppQuery> Back = q => q.Id ("up");
- public static Func<AppQuery, AppQuery> BoxRendererQuery = q => q.Raw ("xamarin.forms.platform.android.BoxRenderer");
- public static Func<AppQuery, AppQuery> Cells = q => q.Raw ("xamarin.forms.platform.android.ViewCellRenderer_ViewCellContainer");
- public static Func<AppQuery, AppQuery> DismissPickerCustom = q => q.Marked ("OK");
- public static Func<AppQuery, AppQuery> DismissPickerNormal = q => q.Marked ("Done");
- public static Func<AppQuery, AppQuery> Entrys = q => q.Raw ("EntryEditText");
- public static Func<AppQuery, AppQuery> EntryCells = q => q.Raw ("EntryCellEditText");
- public static Func<AppQuery, AppQuery> Editors = q => q.Raw ("EditorEditText");
- public static Func<AppQuery, AppQuery> Frames = q => q.Raw ("FrameRenderer");
- public static Func<AppQuery, AppQuery> Images = q => q.Raw ("xamarin.forms.platform.android.ImageRenderer");
- public static Func<AppQuery, AppQuery> ImageView = q => q.Raw("ImageView");
- public static Func<AppQuery, AppQuery> LabelRenderers = q => q.Raw ("LabelRenderer");
- public static Func<AppQuery, AppQuery> List = q => q.Raw ("ListView");
- public static Func<AppQuery, AppQuery> Labels = q => q.Raw ("TextView");
- public static Func<AppQuery, AppQuery> Map = q => q.Raw ("MapView");
- public static Func<AppQuery, AppQuery> NumberPicker = q => q.Raw ("NumberPicker");
- public static Func<AppQuery, AppQuery> ProgressBar = q => q.Raw ("ProgressBar");
- public static Func<AppQuery, AppQuery> Tables = q => q.Raw ("ListView");
- public static Func<AppQuery, AppQuery> SearchBars = q => q.Raw ("SearchView");
- public static Func<AppQuery, AppQuery> Sliders = q => q.Raw ("SeekBar");
- public static Func<AppQuery, AppQuery> SpanningThreeRows = q => q.Marked ("Spanning 3 rows");
- public static Func<AppQuery, AppQuery> Steppers = q => q.Raw ("button marked:'+'");
- public static Func<AppQuery, AppQuery> Switch = q => q.Raw("Switch");
- public static Func<AppQuery, AppQuery> ThreeXThreeGridCell = q => q.Marked ("a block 3x3");
-
- public static Func<AppQuery, AppQuery> EntryWithPlaceholder (string text) {
- return q => q.Raw (string.Format ("EntryEditText hint:'{0}'", text));
- }
- public static Func<AppQuery, AppQuery> EntryCellWithPlaceholder (string text) {
- return q => q.Raw (string.Format ("EntryCellEditText hint:'{0}'", text));
- }
-
- public static Func<AppQuery, AppQuery> EntryWithText (string text) {
- return q => q.Raw (string.Format ("EntryEditText text:'{0}'", text));
- }
-
- public static Func<AppQuery, AppQuery> EntryCellWithText (string text) {
- return q => q.Raw (string.Format ("EntryCellEditText text:'{0}'", text));
- }
-
- public static Func<AppQuery, AppQuery> EditorsWithText (string text) {
- return q => q.Raw (string.Format ("EditorEditText text:'{0}'", text));
- }
-
- public static Func<AppQuery, AppQuery> EntryWithIndex (int index) {
- return q => q.Raw (string.Format ("EntryEditText index:{0}", index));
- }
-
- public static Func<AppQuery, AppQuery> SearchBarWithIndex (int index) {
- return q => q.Raw (string.Format ("SearchView index:{0}", index));
- }
-
- public static Func<AppQuery, AppQuery> LabelWithIndex (int index) {
- return q => q.Raw (string.Format ("TextView index:{0}", index));
- }
-
- public static Func<AppQuery, AppQuery> LabelWithText (string text) {
- return q => q.Raw (string.Format ("TextView text:'{0}'", text));
- }
-
- public static Func<AppQuery, AppQuery> LabelWithId (string id) {
- return q => q.Raw (string.Format ("TextView id:'{0}'", id));
- }
-
- public static Func<AppQuery, AppQuery> PickerEntryWithIndex (int index) {
- return q => q.Raw (string.Format ("EditText index:{0}", index));
- }
-
- public static Func<AppQuery, AppQuery> PickerEntryWithPlaceholder (string placeholder) {
- return q => q.Raw (string.Format ("EditText hint:'{0}'", placeholder));
- }
-
- public static Func<AppQuery, AppQuery> PickerEntryWithText (string text) {
- return q => q.Raw (string.Format ("EditText text:'{0}'", text));
- }
-
- public static Func<AppQuery, AppQuery> SwitchWithIndex (int index) {
- return q => q.Raw (string.Format ("Switch index:{0}", index));
- }
-
- public static Func<AppQuery, AppQuery> StepperWithIndex (int index) {
- return q => q.Raw (string.Format ("button marked:'+' index:{0}", index));
- }
-
- public static AppResult DetailPage (this AndroidApp app)
- {
- return app.Query (q => q.Raw ("*"))[0];
- }
- }
-}