Exemplo n.º 1
0
 public void ThenAsAnAnonymousUserOnThePageICanNotSeeTheModuleAndItsContent(string pageName, string moduleName, string moduleContent)
 {
     Thread.Sleep(1500);
     IEInstance.GoTo(SiteUrl);
     Thread.Sleep(1500);
     LoginPage.LogoffUser();
     Thread.Sleep(1500);
     pageName = pageName.Replace(" ", "");
     IEInstance.GoTo(SiteUrl + "/" + pageName + ".aspx");
     WatiNAssert.AssertIsFalse(HomePage.HtmlModuleExistsOnPage(moduleName, moduleContent), "AnonUserCanSeeModule.jpg");
 }
Exemplo n.º 2
0
        public void ThenThePageCalledTestPageIsDeleted(string pageName)
        {
            Thread.Sleep(2500);
            IEInstance.Refresh();
            var menu = GetPage <SiteMenu>();

            WatiNAssert.AssertIsFalse(menu.MainMenu.Link(Find.ByText(s => s.Contains(pageName))).Exists, pageName + "FoundInMenu.jpg", pageName + " found in main menu: " + menu.MainMenu.InnerHtml);
            IEInstance.GoTo(SiteUrl + "/Admin/RecycleBin.aspx");
            var recycleBin = GetPage <RecycleBinPage>();

            Thread.Sleep(1000);
            WatiNAssert.AssertIsTrue(recycleBin.PagesRecycleBin.InnerHtml.Contains(pageName), pageName + "NotFoundInRecycleBin.jpg", pageName + " not found in recycle bin: " + recycleBin.PagesRecycleBin.InnerHtml);
        }
Exemplo n.º 3
0
 public void ThenIShouldNotSeeTheHostSectionOnThePage()
 {
     WatiNAssert.AssertIsFalse(SettingsPage.HostSectionLink.Exists, "HostSettingsSectionOnPage.jpg");
 }
Exemplo n.º 4
0
 public void ThenIShouldnTSeeDeleteButtonOnAdministrator()
 {
     WatiNAssert.AssertIsFalse(UserPage.GetUserDeleteButton("Administrator Account").Exists, "AdminAccountNotExists.png");
 }