public void ElementsCanBeFoundOnXHtmlPagesTest()
{
// the namespace on the html forces the xml to use namespaces in xpath queries, or use local-name
const string Html =
@"<html xmlns=""http://www.w3.org/1999/xhtml""><body><input type=""submit"" name=""test"" value=""foo"" /></body></html>";
var page = new HtmlPageStub(Html);
var input = page.Find<HtmlButton>().ByName("test");
var target = new AncestorHtmlElementFinder<AnyHtmlElement>(input);
var button = target.AllByTagName("body").ToList();
button.Count.Should().Be(1);
}