public void Settingpopup() { WebDriverUtility.ClickOn(settingsModelPopup); WebDriverUtility.IsDisplayed(ProfileIcon); WebDriverUtility.IsDisplayed(UploadORChangePicture); WebDriverUtility.IsDisplayed(UserName); WebDriverUtility.IsDisplayed(Email); WebDriverUtility.IsDisplayed(DatePicker); WebDriverUtility.IsDisplayed(LanguageDropdown); }
public void FavouriteAppsDisplayedInAppWrapper() { Thread.Sleep(2000); if (WebDriverUtility.IsDisplayed(FavouritedAppsDashBoard)) { Console.WriteLine("Apps favourited are displayed"); } else { Console.WriteLine("Apps favourited are displayed"); } }
public void ValidateSavedSearch() { String searchHeader = WebDriverUtility.GetText(SavedSearchHeader); Assert.AreEqual("Saved Searches", searchHeader); String SearchWorkitemName = WebDriverUtility.GetText(SavedSearchName); String SearchWorkitemDesc = WebDriverUtility.GetText(SavedSearchDescription); String SearchWorkitemCreateDate = WebDriverUtility.GetText(SavedSearchCreateDate); Assert.IsTrue(WebDriverUtility.IsDisplayed(SavedSearchElipse)); WebDriverUtility.ClickOn(SavedSearchElipse); }
public void ClickonEnable() { WebDriverUtility.ClickOn(Enable); Thread.Sleep(2000); //string status=WebDriverUtility.GetText(statusValidate); // //WebDriverUtility.IsDisplayed(statusValidate); if (WebDriverUtility.IsDisplayed(statusValidate)) { Console.WriteLine("service enabled"); } Thread.Sleep(3000); WebDriverUtility.ClickOn(Disable); }
public void ValidateProfileDetails(string testStep) { Assert.IsTrue(WebDriverUtility.IsDisplayed(AvatarIconInDropdown), "Avatar is not present"); Assert.IsTrue(WebDriverUtility.IsDisplayed(ProfileNameInDropdown), "Profile is not present"); Assert.IsTrue(WebDriverUtility.IsDisplayed(EmailInDropdown), "Email is not present"); Assert.IsTrue(WebDriverUtility.IsDisplayed(LanguageInDropdown), "languague field is not present"); Assert.IsTrue(WebDriverUtility.IsDisplayed(ThemeInDropdown), "Theme field is not present"); Assert.AreEqual(WebDriverUtility.GetText(DefaultLanguage), Excel.GetValueFromTestStep(testStep, "DefaultLanguage")); Assert.AreEqual(WebDriverUtility.GetText(DefaultTheme), Excel.GetValueFromTestStep(testStep, "DefaultTheme")); Assert.IsTrue(WebDriverUtility.IsDisplayed(EditProfile), "EditProfile field is not present"); //WebDriverUtility.WaitUntilInvisible(By.XPath("//nav//div[@class='k-i-loading']"), 30); WebDriverUtility.ClickOn(UserIcon); }
public void ValidatePageFields() { String Header = WebDriverUtility.GetText(VoidedScreenHeader).Trim(); Assert.AreEqual("Voided Items Monitor", Header); String Description = WebDriverUtility.GetText(VoidedScreenDescription).Trim(); Assert.AreEqual("Monitor and Manage Services", Description); Assert.IsTrue(WebDriverUtility.IsEnabled(Search)); Assert.IsTrue(WebDriverUtility.IsEnabled(ExportToExcel)); Assert.IsFalse(WebDriverUtility.IsEnabled(Reprocess)); Assert.IsTrue(WebDriverUtility.IsDisplayed(KendoGrid)); }
public void ValidatePageFields() { String Header = WebDriverUtility.GetText(WorkExceptionHeader).Trim(); Assert.AreEqual("Work Exception", Header); String Description = WebDriverUtility.GetText(WorkExceptionDescription).Trim(); Assert.AreEqual("Review Work Exceptions and Reprocess or Void", Description); WebDriverUtility.Wait(); Assert.IsTrue(WebDriverUtility.IsEnabled(Search)); Assert.IsTrue(WebDriverUtility.IsEnabled(ManageNotification)); Assert.IsTrue(WebDriverUtility.IsEnabled(ExportToExcel)); Assert.IsFalse(WebDriverUtility.IsEnabled(Reprocess)); Assert.IsTrue(WebDriverUtility.IsDisplayed(KendoGrid)); }
public void ValidateSearchScreen() { String searchHeader = WebDriverUtility.GetText(SearchHeader); String searchDescription = WebDriverUtility.GetText(SearchDescription); Assert.AreEqual("Advanced item search", searchHeader); Assert.AreEqual("Build advanced query for work items or attachments", searchDescription); Assert.IsTrue(WebDriverUtility.IsDisplayed(WorkitemRadio)); Assert.IsTrue(WebDriverUtility.IsDisplayed(WorkitemAttachmentRadio)); Assert.IsTrue(WebDriverUtility.IsDisplayed(AttachmentRadio)); Assert.IsTrue(WebDriverUtility.IsDisplayed(AddCriteria)); Assert.IsTrue(WebDriverUtility.IsDisplayed(WorkItemName)); Assert.IsFalse(WebDriverUtility.IsEnabled(SearchButton)); Assert.IsFalse(WebDriverUtility.IsEnabled(SaveSearchButton)); Assert.IsTrue(WebDriverUtility.IsEnabled(ClearButton)); WebDriverUtility.ClickOn(SavedSearch); Assert.AreEqual("No Saved Searches", WebDriverUtility.GetText(NoSavedSearchMsg)); }
public void ValidateEmailIDDOBLaguagae(string testStep) { WebDriverUtility.Clear(UserName); WebDriverUtility.EnterText(UserName, Excel.GetValueFromTestStep(testStep, "UserName")); WebDriverUtility.ClickOn(settingsModelPopup); WebDriverUtility.IsDisplayed(DatePicker); WebDriverUtility.ClickOn(DatePickerclick); WebDriverUtility.ClickOn(DatePickerMonth); WebDriverUtility.ClickOn(DatePickerDate); WebDriverUtility.Scrollintoview(ThemeSelection); WebDriverUtility.ClickOn(ThemeSelection); WebDriverUtility.ClickOn(SaveButton); }
public void InValidataValidation() { WebDriverUtility.IsDisplayed(settingsModelPopup); WebDriverUtility.IsDisplayed(UserName); WebDriverUtility.Wait(10000); String text = UserName.GetAttribute("fieldvalue"); int count = text.Length; for (int i = 0; i < count; i++) { UserName.SendKeys(Keys.Backspace); } WebDriverUtility.Scrollintoview(SaveButton); WebDriverUtility.WaitForElement(SaveButton); Assert.IsFalse(WebDriverUtility.IsEnabled(SaveButton)); WebDriverUtility.ClickOn(CloseSettings); }
public void ValidateSearchResults() { Assert.AreEqual("Search Results", SearchResultsTitle); Assert.IsTrue(WebDriverUtility.IsDisplayed(SearchResultsColumn)); Assert.IsTrue(WebDriverUtility.IsDisplayed(ExportButton)); }
public void HomepageView() { WebDriverUtility.IsDisplayed(Homepage); Thread.Sleep(5000); }
public void GridViewValidation() { WebDriverUtility.IsDisplayed(GridView); }
public void SelectFiveApps(string testStep) { Thread.Sleep(2000); WebDriverUtility.ClickOn(FTPIntakeFavoriteInViewAllDashboard); Thread.Sleep(2000); WebDriverUtility.ClickOn(CopyAttachDataFavoriteInViewAllDashboard); Thread.Sleep(2000); WebDriverUtility.ClickOn(CreateActionFavoriteInViewAllDashboard); Thread.Sleep(2000); WebDriverUtility.ClickOn(FaxWatcherFavoriteInViewAllDashboard); Thread.Sleep(2000); WebDriverUtility.ClickOn(CreateStackFavoriteInViewAllDashboard); Thread.Sleep(2000); WebDriverUtility.ClickOn(DasboardIcon); Thread.Sleep(2000); Assert.AreEqual(WebDriverUtility.GetText(ValidateFaxWatcherFavAppFromAppDashboard), Excel.GetValueFromTestStep(testStep, "AppName1")); Assert.AreEqual(WebDriverUtility.GetText(ValidateFtpIntakeFromAppDashboard), Excel.GetValueFromTestStep(testStep, "AppName2")); Assert.AreEqual(WebDriverUtility.GetText(ValidateCreateStackFavAppFromAppDashboard), Excel.GetValueFromTestStep(testStep, "AppName3")); Assert.AreEqual(WebDriverUtility.GetText(ValidateCreteActionFavAppFromAppDashboard), Excel.GetValueFromTestStep(testStep, "AppName4")); Assert.AreEqual(WebDriverUtility.GetText(ValidateCopyAttachFavAppsFromAppDashboard), Excel.GetValueFromTestStep(testStep, "AppName5")); Assert.IsTrue(WebDriverUtility.IsDisplayed(ValidateViewAllApps), "View All apps displayed"); Thread.Sleep(2000); WebDriverUtility.ClickOn(FavouriteAppsLink); Assert.AreEqual(WebDriverUtility.GetText(ValidateFaxWatcherFavAppFromFavTab), Excel.GetValueFromTestStep(testStep, "AppName1")); Assert.AreEqual(WebDriverUtility.GetText(ValidateFtpIntake), Excel.GetValueFromTestStep(testStep, "AppName2")); Assert.AreEqual(WebDriverUtility.GetText(ValidateCreateStackFavAppFromFavTab), Excel.GetValueFromTestStep(testStep, "AppName3")); Assert.AreEqual(WebDriverUtility.GetText(ValidateCreteActionFavAppFromFavTab), Excel.GetValueFromTestStep(testStep, "AppName4")); Assert.AreEqual(WebDriverUtility.GetText(ValidateCopyAttachFavAppsFromFavTab), Excel.GetValueFromTestStep(testStep, "AppName5")); Assert.IsTrue(WebDriverUtility.IsDisplayed(ValidateViewAllAppsFromFavTab), "View All apps displayed"); Thread.Sleep(2000); WebDriverUtility.ClickOn(DasboardIcon); Thread.Sleep(2000); WebDriverUtility.ClickOn(ValidateViewAllApps); Thread.Sleep(5000); string FTPSelected = WebDriverUtility.GetAttribute(FTPIntakeFavoriteInViewAllDashboard, "src"); if (FTPSelected.Equals("https://core-customer-ui-hub.qa.dummy1.cndt.cf/assets/images/star_fill.svg")) { Console.WriteLine("FTPSelected"); } string CopyAttachData = WebDriverUtility.GetAttribute(CopyAttachDataFavoriteInViewAllDashboard, "src"); if (CopyAttachData.Equals("https://core-customer-ui-hub.qa.dummy1.cndt.cf/assets/images/star_fill.svg")) { Console.WriteLine("CopyAttachData selected"); } string CreateActionFavorite = WebDriverUtility.GetAttribute(CreateActionFavoriteInViewAllDashboard, "src"); if (CreateActionFavorite.Equals("https://core-customer-ui-hub.qa.dummy1.cndt.cf/assets/images/star_fill.svg")) { Console.WriteLine("CreateActionFavorite selected"); } string FaxWatcher = WebDriverUtility.GetAttribute(FaxWatcherFavoriteInViewAllDashboard, "src"); if (FaxWatcher.Equals("https://core-customer-ui-hub.qa.dummy1.cndt.cf/assets/images/star_fill.svg")) { Console.WriteLine("FaxWatcher selected"); } string CreateStack = WebDriverUtility.GetAttribute(CreateStackFavoriteInViewAllDashboard, "src"); if (CreateStack.Equals("https://core-customer-ui-hub.qa.dummy1.cndt.cf/assets/images/star_fill.svg")) { Console.WriteLine("CreateStack selected"); } Thread.Sleep(2000); WebDriverUtility.ClickOn(DasboardIcon); }
public void AllAppsDisplayed() { Thread.Sleep(3000); WebDriverUtility.IsDisplayed(AllAppsDsiplayed); }
public void NoAppsValidations() { WebDriverUtility.ClickOn(BaselineApps); Assert.IsTrue(WebDriverUtility.IsDisplayed(NoFavAppsValidation)); }
public void Successmessage() { WebDriverUtility.IsDisplayed(MessageNotification); }
public void ReportCardsInGrid() { WebDriverUtility.IsDisplayed(ReportCards); WebDriverUtility.ClickOn(ReportCards); }
public void ErrorMessageforMorethanFiveFavApps() { Assert.IsTrue(WebDriverUtility.IsDisplayed(ErrorMessageForMorethanFiveApps), "cannot add more than 5 apps"); WebDriverUtility.ClickOn(DasboardIcon); }
public void SelectAndView() { WebDriverUtility.IsDisplayed(ReportInListView); WebDriverUtility.SelectCheckBox(CheckBoxForReport); WebDriverUtility.ClickOn(ViewButton); }
public void AllAppsDisplayedExpectedAsync() { Thread.Sleep(3000); WebDriverUtility.IsDisplayed(AllAppsDsiplayed); Assert.IsTrue(WebDriverUtility.GetText(AppCount).Contains("20 Apps Found")); }