/// <summary> /// Verify css class of div element containing search results /// </summary> /// <param name="cssClass">css class</param> public void VerifySearchResultsCssClass(string cssClass) { HtmlDiv searchResultsDiv = this.ActiveBrowser.Find.ByExpression <HtmlDiv>("class=" + cssClass); searchResultsDiv.AssertIsNotNull("search results div is not found"); searchResultsDiv.Find.ByExpression <HtmlContainerControl>("tagname=h1").AssertIsNotNull("search result label is not found"); }
/// <summary> /// Verify css class of div element containing document /// </summary> /// <param name="cssClass">css class</param> /// <param name="title">The title.</param> public void VerifyDocumentCssClass(string cssClass, string title) { HtmlDiv documentDiv = this.ActiveBrowser.Find.ByExpression <HtmlDiv>("class=" + cssClass); documentDiv.AssertIsNotNull("div is not found"); documentDiv.Find.ByExpression <HtmlAnchor>("innertext=" + title).AssertIsNotNull("document is not found"); }
/// <summary> /// Verify css class of div element containing search box /// </summary> /// <param name="cssClass">css class</param> public void VerifySearchBoxCssClass(string cssClass) { HtmlDiv searchBoxDiv = this.ActiveBrowser.Find.ByExpression <HtmlDiv>("class=" + cssClass); searchBoxDiv.AssertIsNotNull("search box div is not found"); searchBoxDiv.Find.ByExpression <HtmlButton>("tagname=button", "innerText=Search").AssertIsNotNull("search button is not found"); }
/// <summary> /// Verifies the video CSS class. /// </summary> /// <param name="cssClass">The CSS class.</param> /// <param name="src">The SRC.</param> public void VerifyVideoCssClass(string cssClass, string src) { HtmlDiv documentDiv = this.ActiveBrowser.Find.ByExpression <HtmlDiv>("class=" + cssClass); documentDiv.AssertIsNotNull("div is not found"); documentDiv.Find.ByExpression <HtmlVideo>("src=~" + src).AssertIsPresent("video"); }