diff --git a/Xamarin.Forms.ControlGallery.iOS/local.html b/Xamarin.Forms.ControlGallery.iOS/local.html index ccc9bec3a73..cb857003dbb 100644 --- a/Xamarin.Forms.ControlGallery.iOS/local.html +++ b/Xamarin.Forms.ControlGallery.iOS/local.html @@ -5,6 +5,6 @@

Xamarin.Forms

This is a local iOS Html page

-Go to Google +Go to Google \ No newline at end of file diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla26993.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla26993.cs index c600ed674b3..74b62cfc101 100644 --- a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla26993.cs +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla26993.cs @@ -3,6 +3,7 @@ using Xamarin.Forms.CustomAttributes; using System.Collections.Generic; using Xamarin.Forms.Internals; +using System.Linq; #if UITEST using Xamarin.UITest; using NUnit.Framework; @@ -101,19 +102,33 @@ public void Bugzilla26993Test() { RunningApp.Screenshot("I am at BZ26993"); +#if __IOS__ + RunningApp.WaitForElement(q => q.Class("WKWebView")); + + RunningApp.Query(q => q.Class("WKWebView").Index(0).InvokeJS("document.getElementById('LinkID0').click()")); + RunningApp.Screenshot("Load local HTML"); + + RunningApp.WaitForNoElement(q => q.Class("WKWebView").Css("#LinkID0")); + UITest.Queries.AppWebResult[] newElem = + RunningApp.QueryUntilPresent(() => RunningApp.Query(q => q.Class("WKWebView").Css("a"))); + + Assert.AreEqual("#LocalHtmlPageLink", newElem[0].Id); +#elif __ANDROID__ RunningApp.WaitForElement(q => q.WebView(0).Css("#CellID0")); RunningApp.Tap(q => q.WebView(0).Css("#LinkID0")); RunningApp.Screenshot("Load local HTML"); RunningApp.WaitForNoElement(q => q.WebView(0).Css("#LinkID0")); + UITest.Queries.AppWebResult[] newElem = RunningApp.QueryUntilPresent(() => RunningApp.Query(q => q.WebView(0).Css("h1"))); Assert.AreEqual("#LocalHtmlPage", newElem[0].Id); +#endif RunningApp.Screenshot("I see the Label"); } #endif - } -} + } +} \ No newline at end of file