public void ThenICanSeeARendering(string renderingName) { ID id = SiteConfigurationFactory.GetRenderingId(renderingName); if (id == null as ID) { throw new Exception("Id not found."); } var renderingsOnScreen = ContextDriver.CurrentDriver.FindElementsByClassName("renderingInfo"); bool result = renderingsOnScreen.Any(x => { string attribute = x.GetAttribute("data-renderingid"); return(String.Equals(attribute, id.ToString(), StringComparison.OrdinalIgnoreCase)); }); if (!result) { throw new Exception("Rendering not found."); } }
public string GetUrlForPage(string page) { return(SiteConfigurationFactory.GetUrl(page)); }