public void Test0064_MoveHTMLModuleWithinContentPaneDown(string pageName) { Trace.WriteLine(BasePage.RunningTestKeyWord + "'Move a HTML Module DOWN'"); BlankPage blankPage = new BlankPage(_driver); blankPage.OpenUsingUrl(_baseUrl, pageName); Modules module = new Modules(_driver); module.SetPageToEditMode(pageName); string moduleNumber1 = blankPage.WaitForElement(By.XPath(Modules.ContentPaneID + "/div[2]/a")).GetAttribute("name"); string moduleNumber2 = blankPage.WaitForElement(By.XPath(Modules.ContentPaneID + "/div[3]/a")).GetAttribute("name"); string moduleNumber3 = blankPage.WaitForElement(By.XPath(Modules.ContentPaneID + "/div[4]/a")).GetAttribute("name"); string moduleNumber4 = blankPage.WaitForElement(By.XPath(Modules.ContentPaneID + "/div[5]/a")).GetAttribute("name"); module.MoveModuleUsingMenu(moduleNumber2, Modules.HtmlProModuleOnPage, Modules.DownOption); Assert.That(blankPage.WaitForElement(By.XPath(Modules.ContentPaneID + "/div[2]/a")).GetAttribute("name"), Is.EqualTo(moduleNumber1), "Module is not found"); Assert.That(blankPage.WaitForElement(By.XPath(Modules.ContentPaneID + "/div[3]/a")).GetAttribute("name"), Is.EqualTo(moduleNumber3), "Module is not found"); Assert.That(blankPage.WaitForElement(By.XPath(Modules.ContentPaneID + "/div[4]/a")).GetAttribute("name"), Is.EqualTo(moduleNumber2), "Module is not found"); Assert.That(blankPage.WaitForElement(By.XPath(Modules.ContentPaneID + "/div[5]/a")).GetAttribute("name"), Is.EqualTo(moduleNumber4), "Module is not found"); }