summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core.UITests.Shared
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Core.UITests.Shared')
-rw-r--r--Xamarin.Forms.Core.UITests.Shared/Utilities/AppExtensions.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/Xamarin.Forms.Core.UITests.Shared/Utilities/AppExtensions.cs b/Xamarin.Forms.Core.UITests.Shared/Utilities/AppExtensions.cs
index b5f52b9c..3a16ae66 100644
--- a/Xamarin.Forms.Core.UITests.Shared/Utilities/AppExtensions.cs
+++ b/Xamarin.Forms.Core.UITests.Shared/Utilities/AppExtensions.cs
@@ -16,17 +16,19 @@ namespace Xamarin.Forms.Core.UITests
public static void NavigateBack (this IApp app)
{
- app.Tap (Queries.NavigationBarBackButton ());
+ app.Back();
}
public static void NavigateToGallery (this IApp app, string page)
{
const string goToTestButtonQuery = "* marked:'GoToTestButton'";
+ app.WaitForElement(q => q.Raw(goToTestButtonQuery), "Timed out waiting for Go To Test button to disappear", TimeSpan.FromSeconds(10));
+
var text = Regex.Match (page, "'(?<text>[^']*)'").Groups["text"].Value;
+
+ app.WaitForElement("SearchBar");
app.EnterText (q => q.Raw ("* marked:'SearchBar'"), text);
-
- app.WaitForElement(q => q.Raw(goToTestButtonQuery), "Timed out waiting for Go To Test button to disappear", TimeSpan.FromSeconds(10));
app.Tap (q => q.Raw (goToTestButtonQuery));
app.WaitForNoElement (o => o.Raw (goToTestButtonQuery), "Timed out waiting for Go To Test button to disappear", TimeSpan.FromMinutes(2));