public static void CloseThemesWindow() { ThemesPage page = new ThemesPage(); page.BtnClose.Click(5); page.ReturnFocusToThemesWindow(); page.BtnSaveAndClose.Click(5); }
public static void CloseWindow() { ThemesPage tp = new ThemesPage(); tp.ButtonClose.Click(); tp.GoToFirstWindow(); tp.ButtonClose2.Click(); }
public static void SetTheme(string path) { ThemesPage tp = new ThemesPage(); tp.LinkSetThemes.Click(); tp.ButtonMyPhoto.Click(); tp.ChangeWindow(); tp.ButtonUploadPhoto.Click(); tp.ButtonSelectedPhotoFromComputer.Click(); Attachment.AttachFile(path); }
public static void ChangeBackgroungImage(string imagePath) { ThemesPage page = new ThemesPage(); page.LinkSetTheme.Click(5); page.WaitForPageToLoad(); page.BtnMyPhotos.Click(5); page.WaitForPageToLoad(); page.SetFocusToSelectYourBackgroundImage(); page.BtnUploadPhoto.Click(5); page.BtnSelectPhotoFromComputer.Click(9); page.UploadPhotoFromComputer(imagePath); }
public void tc_63902_As_a_Admin_search_for_the_theme_in_the_Landing_page() { CommonSection.Administer.System.BrandingAndCustomization.Themes(); _test.Log(Status.Info, "Navigate to System Branding and Customization >> Themes page"); Assert.IsTrue(Driver.checkTitle("Themes")); _test.Log(Status.Pass, "Verify Page title is Themes"); Assert.IsTrue(ThemesPage.isSearchBarisdisplay()); _test.Log(Status.Pass, "Verify Searchbar is display"); ThemesPage.Searchbar.Search("asdasdsasa"); _test.Log(Status.Info, "Search any not match text"); Assert.IsTrue(ThemesPage.isNorecordsfounddisplay()); _test.Log(Status.Info, "Verify no result found"); ThemesPage.Searchbar.Search("Default"); _test.Log(Status.Info, "Search any match text"); Assert.IsTrue(ThemesPage.isSearchresultFound("Default")); _test.Log(Status.Info, "Verify result is found found"); }
public static bool CheckMessageIsPresent() { ThemesPage tp = new ThemesPage(); return(Driver.DriverInstance.IsElementPresent(tp.LabelMessage.by)); }
public static bool IsUploadErrorOccured() { ThemesPage page = new ThemesPage(); return(page.LblUploadError.IsElementPresentOnPage(5)); }