I'm starting to do some very basic testing with the WebView class and am having some trouble setting the Url property and verifying that it's value is the value that I gave it.
In fact, when I set the Url value of the WebView, it's Url property is an empty string. I see the same behaviour with GetText and GetHtml (not quite sure what the difference in between those two).
An example of that simple test might be:
Code: C#
[Test]
public void HaveAUrl()
{
var w = new WebView();
w.Url = "about:blank";
Assert.IsNotNullOrEmpty(w.Url);
}
Is also see this behaviour when debugging at runtime.
At the end of the day, my objective is to invoke some javascript on my rendered webpage and ensure that new elements have been added to the DOM. I'm intending to do this by reading the html from the webview after the script is invoked and verifying that the new elements are in place.