public void PageSourceContainsCaseTest() { const string ExpectedText = "HTTP status codes are a standard set of numbers used to communicate from a web server"; var statusCodes = new InternetPage(this.DriverContext) .OpenHomePage() .GoToStatusCodesPage(); Assert.IsTrue(statusCodes.IsTextExistedInPageSource(ExpectedText), "Text is not present!"); }