summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues
diff options
context:
space:
mode:
authorRui Marinho <me@ruimarinho.net>2017-10-12 17:36:42 (GMT)
committerRui Marinho <me@ruimarinho.net>2017-10-12 17:36:42 (GMT)
commit00d75e53fa1abde939d8e098aec1f639969172b5 (patch)
treee2d421bd8893c7d10ef72970d91e103a61b624f2 /Xamarin.Forms.Controls.Issues
parent56f674ac1d3ac580dfc13a85dfeef8d6d4069037 (diff)
downloadxamarin-forms-00d75e53fa1abde939d8e098aec1f639969172b5.zip
xamarin-forms-00d75e53fa1abde939d8e098aec1f639969172b5.tar.gz
xamarin-forms-00d75e53fa1abde939d8e098aec1f639969172b5.tar.bz2
[UITest] Fix uitest for elevation
Diffstat (limited to 'Xamarin.Forms.Controls.Issues')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/ButtonFastRendererTest.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/ButtonFastRendererTest.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/ButtonFastRendererTest.cs
index 4f76819..1ba275b 100644
--- a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/ButtonFastRendererTest.cs
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/ButtonFastRendererTest.cs
@@ -30,12 +30,14 @@ namespace Xamarin.Forms.Controls.Issues
Content = grd;
}
-#if UITEST
+#if UITEST && __ANDROID__
[Test]
public void TestButtonUsingElevation ()
{
RunningApp.WaitForElement(Running);
- RunningApp.Tap(btnId);
+ var btnQuqery = RunningApp.Query(c => c.Marked(btnId));
+ if (btnQuqery.Length > 0)
+ RunningApp.Tap(btnId);
RunningApp.WaitForNoElement(Success);
}
#endif