public void Test003_EditModuleSettings() { Trace.WriteLine(BasePage.RunningTestKeyWord + "'Edit Module settings'"); var blankPage = new BlankPage(_driver); blankPage.OpenUsingUrl(_baseUrl, _pageName); var module = new Modules(_driver); Trace.WriteLine(BasePage.TraceLevelElement + "Find the Module number:"); string moduleNumber = module.WaitForElement(By.XPath(Modules.LeftPaneID + Modules.HtmlModuleOnPage + "/a")).GetAttribute("name"); module.ChangeModuleTitle(moduleNumber, _moduleTitle); Trace.WriteLine(BasePage.TraceLevelPage + "ASSERT a new Module Title is present on the page"); StringAssert.Contains(_moduleTitle.ToUpper(), blankPage.WaitForElement( By.XPath("//div[contains(@class, 'DNN_HTML DnnModule-" + moduleNumber + "')]" + ControlPanelIDs.PageTitleID)).Text.ToUpper(), "The new Module Title is not saved correctly"); }