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 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 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); }