private void CheckBasicsInPage(params string[] images)
{
// This is possibly too strong; see comment where we remove them.
AssertThatXmlIn.String(_page1Data).HasNoMatchForXpath("//*[@aria-describedby]");
// Not sure why we sometimes have these, but validator doesn't like them.
AssertThatXmlIn.String(_page1Data).HasNoMatchForXpath("//*[@lang='']");
AssertThatXmlIn.String(_page1Data).HasNoMatchForXpath("//xhtml:script", _ns);
AssertThatXmlIn.String(_page1Data).HasNoMatchForXpath("//*[@lang='*']");
foreach (var image in images)
AssertThatXmlIn.String(_page1Data).HasAtLeastOneMatchForXpath("//img[@src='" +image + ".png']");
AssertThatXmlIn.String(_page1Data).HasAtLeastOneMatchForXpath("//xhtml:link[@rel='stylesheet' and @href='settingsCollectionStyles.css']", _ns);
AssertThatXmlIn.String(_page1Data).HasAtLeastOneMatchForXpath("//xhtml:link[@rel='stylesheet' and @href='customCollectionStyles.css']", _ns);
AssertThatXmlIn.String(_page1Data).HasAtLeastOneMatchForXpath("//xhtml:link[@rel='stylesheet' and @href='customBookStyles.css']", _ns);
AssertThatXmlIn.String(_page1Data).HasAtLeastOneMatchForXpath("//xhtml:link[@rel='stylesheet' and @href='fonts.css']", _ns);
}