public void favUsingAddFavTaB() { Thread.Sleep(3000); WebDriverUtility.ClickOn(FTPIntakeAddFavThroughThreeDotOption); Thread.Sleep(2000); WebDriverUtility.ClickOn(FTPIntakeAddFavTab); Thread.Sleep(2000); WebDriverUtility.ClickOn(CopyAttachAddFavThroughThreeDotOption); Thread.Sleep(1000); WebDriverUtility.ClickOn(CopyAttachAddFavTab); Thread.Sleep(2000); WebDriverUtility.ClickOn(CreateActionAddFavThroughThreeDotOption); Thread.Sleep(1000); WebDriverUtility.ClickOn(CreateActionAddFavTab); Thread.Sleep(2000); WebDriverUtility.ClickOn(FaxWatcherAddFavThroughThreeDotOption); Thread.Sleep(1000); WebDriverUtility.ClickOn(FaxWatcherAddFavTab); Thread.Sleep(2000); WebDriverUtility.ClickOn(CreateStackAddFavThroughThreeDotOption); Thread.Sleep(2000); WebDriverUtility.ClickOn(CreateStackAddFavTab); }
public void VerifyDashBoard() { Thread.Sleep(5000); //WebDriverUtility.IsDisplayed(Reports); WebDriverUtility.IsDisplayed(ViewAllApps); WebDriverUtility.ClickOn(ViewAllApps); }
public void ValidateRemovedFavApps() { Thread.Sleep(2000); WebDriverUtility.ClickOn(FavouriteAppsLink); Assert.IsTrue(WebDriverUtility.IsDisplayed(Removedappsvalidation), "AppsRemovedSucessfully"); }
public void ValidateUploadAvatar(String fileName) { WebDriverUtility.ClickOn(UploadPic); WebDriverUtility.UploadPhoto(fileName); if (fileName.Contains("gif") || fileName.Contains("png") || fileName.Contains("jpg")) { if (!fileName.Contains("gif")) { Thread.Sleep(3000); WebDriverUtility.ClickOn(ApplyAvatar); WebDriverUtility.ScrollDownPage(); WebDriverUtility.ClickOn(SaveButton); } else { WebDriverUtility.ScrollDownPage(); WebDriverUtility.ClickOn(SaveButton); } } else { String errorMessage = WebDriverUtility.GetText(InvalidFormatAvatar); Assert.AreEqual(errorMessage, "docx format is not allowed"); } }
public void UpdatedDatavalidation(string testStep) { Assert.AreEqual(WebDriverUtility.GetText(UpdatedProfileName), Excel.GetValueFromTestStep(testStep, "UpdatedProfileName")); Assert.AreEqual(WebDriverUtility.GetText(EmailIDValidation), Excel.GetValueFromTestStep(testStep, "EmailIDValidation")); Assert.AreEqual(WebDriverUtility.GetText(LanguageValidation), Excel.GetValueFromTestStep(testStep, "LanguageValidation")); Assert.AreEqual(WebDriverUtility.GetText(ThemeValidationLight), Excel.GetValueFromTestStep(testStep, "ThemeValidationLight")); }
public void ValidateVoidedItemDetailPage() { String workitemName = WebDriverUtility.GetText(WorkitemName).Trim(); WebDriverUtility.ClickOn(WorkitemName); Assert.AreEqual("item #" + workitemName.ToLower(), WebDriverUtility.GetText(WorkitemHeader).Trim().ToLower()); String description = "Monitor and Manage Services #" + workitemName; Assert.AreEqual(description.ToLower(), WebDriverUtility.GetText(WorkitemDetailsDesc).Trim().ToLower()); Assert.IsTrue(WebDriverUtility.IsEnabled(EditField)); Assert.IsTrue(WebDriverUtility.IsEnabled(BackToResults)); Assert.IsTrue(WebDriverUtility.IsEnabled(Reprocess)); WebDriverUtility.ClickOn(ReprocessOptions); /*String editStatus = WebDriverUtility.GetAttribute(EditStatus,"value").Trim(); * Assert.AreEqual(editStatus,"true");*/ Assert.IsTrue(WebDriverUtility.IsEnabled(AddressInput)); WebDriverUtility.ClickOn(ChangeStatus); /*editStatus = WebDriverUtility.GetAttribute(EditStatus, "value").Trim(); * Assert.AreEqual(editStatus, "false");*/ Assert.IsFalse(WebDriverUtility.IsEnabled(AddressInput)); WebDriverUtility.ClickOn(VariablesTab); }
public void AddUsersinGridView() { Thread.Sleep(2000); WebDriverUtility.ClickOn(Gridview); WebDriverUtility.ClickOn(AddUser); WebDriverUtility.EnterText(FirstName, "Automation"); WebDriverUtility.EnterText(LastName, "Testing"); WebDriverUtility.EnterText(Email, "*****@*****.**"); WebDriverUtility.ClickOn(save); //WebDriverUtility.Clear(FilterSearch); Thread.Sleep(2000); WebDriverUtility.EnterText(FilterSearch, "*****@*****.**"); Thread.Sleep(2000); WebDriverUtility.ClickOn(EditRolesinGridViewforUsers); WebDriverUtility.EnterText(FilterRoles, "RbacAdmin"); WebDriverUtility.ClickOn(SelectRbacAdmin); string value = WebDriverUtility.GetText(Roletaskandresourcevalidation); string value1 = "Create and delete new roles, edit features/resources, and add/remove members"; if (value.Equals(value1)) { Console.WriteLine("Role added successfully"); } WebDriverUtility.ClickOn(AssignedRolesSaveGridView); WebDriverUtility.ClickOn(SelectUser); WebDriverUtility.ClickOn(DeleteUser); WebDriverUtility.ClickOn(DeleteConfirmation); }
public void FavAppValidation() { WebDriverUtility.ClickOn(OCRAPPFav); Assert.IsTrue(WebDriverUtility.IsDisplayed(OCRAPPFavouritedApp)); Thread.Sleep(1000); WebDriverUtility.ClickOn(OCRAPPFav); }
public void Urlopened() { String resultURL = WebDriverUtility.GetCurrentURL(); Assert.IsTrue(resultURL.Contains("https://localhost:8081/Medi")); WebDriverUtility.GetDriver().Navigate().Back(); Thread.Sleep(2000); }
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 SaveSearchCriteria() { WebDriverUtility.ClickOn(AddCriteria); WebDriverUtility.EnterText(SelectColumnName, "Work Item Name"); WebDriverUtility.ClickOn(SelectOperatorArrow); WebDriverUtility.ClickOnPointFromElement(SelectOperator, "bottom", 23); // SelectOperator.SelectByValue("Different Than"); WebDriverUtility.EnterText(EnterValue, "test"); WebDriverUtility.ClickOn(SaveSearchButton); }
/*public void ValidateSavedSearchScreen() * { * WebDriverUtility.ClickOn(SavedSearch); * * * * * }*/ public void CreateSearchCriteria() { Thread.Sleep(2000); WebDriverUtility.ClickOn(AddCriteria); WebDriverUtility.EnterText(SelectColumnName, "Work Item Name"); WebDriverUtility.ClickOn(SelectOperatorArrow); WebDriverUtility.ClickOnPointFromElement(SelectOperator, "bottom", 25); WebDriverUtility.EnterText(EnterValue, "test"); WebDriverUtility.ClickOn(SearchButton); }
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 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 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 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 ReprocessVoidedItem() { String workitemName = WebDriverUtility.GetText(WorkitemName).Trim(); WebDriverUtility.ClickOn(Reprocess); String alertMessage = WebDriverUtility.GetText(AlertMessage); String expectedAlertMessage = "You are about to reprocess the following item(s) \"" + workitemName + "\""; Assert.AreEqual(expectedAlertMessage, alertMessage); WebDriverUtility.EnterText(AlertComments, "Automated test run"); WebDriverUtility.ClickOn(ReprocessInAlert); String ReprocessMessage = WebDriverUtility.GetText(SuccessMessage); Console.WriteLine(ReprocessMessage); }
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 UnFavApps() { 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); string FTPSelected = WebDriverUtility.GetAttribute(FTPIntakeFavoriteInViewAllDashboard, "src"); if (FTPSelected.Equals("https://core-customer-ui-hub.qa.dummy1.cndt.cf/assets/images/star_empty.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_empty.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_empty.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_empty.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_empty.svg")) { Console.WriteLine("CreateStack selected"); } }
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 VerifyAppToolTipValue() { WebDriverUtility.MoveToElement(AppToolTip); String tooltip = WebDriverUtility.GetText(ToolTipValidation); Assert.AreEqual(tooltip, Excel.GetValueFromTestStep("AppDetails", "AppToolTip"), "Tooltip not matching as in Service"); Console.WriteLine(tooltip); WebDriverUtility.MoveToElement(AttchDataAppName); String AppName = WebDriverUtility.GetText(ToolTipValidation); Assert.AreEqual(AppName, Excel.GetValueFromTestStep("AppDetails", "AppName"), "App name not matching as in Service"); WebDriverUtility.MoveToElement(AttchDataAppDescp); String AppDescription = WebDriverUtility.GetText(ToolTipValidation); Assert.AreEqual(AppDescription, Excel.GetValueFromTestStep("AppDetails", "AppDescription"), "App descripton not matching as in Service"); }
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 ValidateUpateddata(string testStep) { string UpdatedUserNameValue = WebDriverUtility.GetAttribute(UserName, "fieldvalue"); if (UpdatedUserNameValue.Equals(Excel.GetValueFromTestStep(testStep, "UpdatedProfileName"))) { Console.WriteLine("UserNameUpdated"); } string ValidatedEmailValue = WebDriverUtility.GetAttribute(Email, "fieldvalue"); if (ValidatedEmailValue.Equals(Excel.GetValueFromTestStep(testStep, "EmailIDValidation"))) { Console.WriteLine("EmailIDValidated"); } }
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 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 Removevalidation() { try { if (AddedFavAppsValidation.Count > 1) { foreach (var elem in Elipsy) { elem.Click(); WebDriverUtility.WaitUntilClickable(RemoveFavourite, 30); WebDriverUtility.ClickOn(RemoveFavourite); Thread.Sleep(1000); } } } catch (Exception) { Console.WriteLine("No App Selected"); } }
public void AddRoles() { Thread.Sleep(2000); WebDriverUtility.ClickOn(AddRole); Thread.Sleep(2000); WebDriverUtility.ClickOn(EditIconRoleName); WebDriverUtility.ClickOn(EditIconRoleDescription); WebDriverUtility.EnterText(RoleNameTextInput, "AutomationTesting"); WebDriverUtility.EnterText(RoleDescriptionInput, "AutomationtestingDescription"); WebDriverUtility.ClickOn(TaskSelection); WebDriverUtility.ClickOn(Save); WebDriverUtility.EnterText(FilterSearch, "AutomationTesting"); Thread.Sleep(2000); string value = WebDriverUtility.GetText(SelectedTaskValidation); if (value.Equals("Create and delete new roles, edit features/resources, and add/remove members")) { Console.WriteLine("Validated"); } WebDriverUtility.ClickOn(DeleteRole); WebDriverUtility.ClickOn(DeleteConfirmation); //WebDriverUtility.EnterText(FirstName, "Automation"); //WebDriverUtility.EnterText(LastName, "Testing"); //WebDriverUtility.EnterText(Email, "*****@*****.**"); //WebDriverUtility.ClickOn(save); ////WebDriverUtility.Clear(FilterSearch); //Thread.Sleep(2000); //WebDriverUtility.EnterText(FilterSearch, "*****@*****.**"); //Thread.Sleep(2000); //WebDriverUtility.ClickOn(EditAssignments); //WebDriverUtility.EnterText(FilterRoles, "RbacAdmin"); //WebDriverUtility.ClickOn(SelectRbacAdmin); //string value = WebDriverUtility.GetText(Roletaskandresourcevalidation); //string value1 = "Create and delete new roles, edit features/resources, and add/remove members"; //if (value.Equals(value1)) //{ // Console.WriteLine("Role added successfully"); //} }
public void FavMorethanFiveApps() { Thread.Sleep(2000); WebDriverUtility.ClickOn(FTPIntakeFavoriteInViewAllDashboard); Thread.Sleep(3000); 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(CashReportFavoriteInViewAllDashboard); //WebDriverUtility.ClickOn(DasboardIcon); }
public void SelectFiveAppsandremovefromoption() { 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(5000); WebDriverUtility.ClickOn(FTPIntakeAddFavThroughThreeDotOption); Thread.Sleep(2000); WebDriverUtility.ClickOn(FTPIntakeRemoveFavAppsoption); Thread.Sleep(2000); WebDriverUtility.ClickOn(CopyAttachAddFavThroughThreeDotOption); Thread.Sleep(1000); WebDriverUtility.ClickOn(CopyAttchDataRemoveFavAppsoption); Thread.Sleep(2000); WebDriverUtility.ClickOn(CreateActionAddFavThroughThreeDotOption); Thread.Sleep(1000); WebDriverUtility.ClickOn(CreateActionRemoveFavAppsoption); Thread.Sleep(2000); WebDriverUtility.ClickOn(FaxWatcherAddFavThroughThreeDotOption); Thread.Sleep(1000); WebDriverUtility.ClickOn(FaxWatcherRemoveFavAppsoption); Thread.Sleep(2000); WebDriverUtility.ClickOn(CreateStackAddFavThroughThreeDotOption); Thread.Sleep(2000); WebDriverUtility.ClickOn(CreateStackRemoveFavAppsoption); }
public void RemoveAllApps() { Thread.Sleep(2000); WebDriverUtility.ClickOn(CopyAttchDatathreedotinwrapper); WebDriverUtility.WaitUntilClickable(RemoveFavourite, 30); WebDriverUtility.ClickOn(RemoveFavourite); Thread.Sleep(2000); WebDriverUtility.ClickOn(CreateActionthreedotinwrapper); WebDriverUtility.WaitUntilClickable(RemoveFavourite, 30); WebDriverUtility.ClickOn(RemoveFavourite); Thread.Sleep(2000); WebDriverUtility.ClickOn(CreateStackthreedotinwrapper); WebDriverUtility.WaitUntilClickable(RemoveFavourite, 30); WebDriverUtility.ClickOn(RemoveFavourite); Thread.Sleep(2000); WebDriverUtility.ClickOn(FaxWatcherthreedotinwrapper); WebDriverUtility.WaitUntilClickable(RemoveFavourite, 30); WebDriverUtility.ClickOn(RemoveFavourite); Thread.Sleep(2000); WebDriverUtility.ClickOn(FTPIntakethreedotinwrapper); WebDriverUtility.ClickOn(RemoveFavourite); }