public void LoginScrShot()
 {
     var lpage = new LoginPage(ObjectRepository.Driver);
     lpage.ScreenShotofForgotPassword("Forgot Username");
     lpage.ScreenShotofForgotUserName("Forgot Password");
     lpage.ScreenShotofOpenReg("Open Register");
 }
 public void TestActivityIncentiveTemp()
 {
     LoginPage lpage = new LoginPage(ObjectRepository.Driver);
     HomePage hPage = lpage.LoginApplication(ObjectRepository.Config.GetUsername(), ObjectRepository.Config.GetPassword());
     ManageIncentivePrograms mIPage = hPage.OpenManageIncentivePrograms();
     NewProgram npPage = mIPage.ClickNewProgram();
     ActivityIncentiveTemplate aiPage =  npPage.CreateActivityIncentiveTemplate();
     aiPage.SelectProgramName("Test", "Test");
     aiPage.SelectProgramVisibilityStartDate("28", "October", "2015");
     aiPage.SelectProgramVisibilityEndDate("01", "October", "2002");
     aiPage.SelectProgramStartDate("26", "April", "2002");
     aiPage.SelectProgramEndDate("30", "November", "2015");
     aiPage.SelectProgramLastSubmitDate("01", "December", "2015");
     aiPage.SelectProgramCloseDates("31", "December", "2015");
     aiPage.AddPoints("1001", "22", "Hello1");
     aiPage.AddPointType("test", "100");
     aiPage.AddProgramIncentive("CODE1", "TPE1", "TesTing", "100");
     aiPage.AddEligibleGroup("test");
     aiPage.CheckValidationField(true, false, true, false, false);
     aiPage.ClickFinish();
     mIPage.SelectItemPerList("100");
     mIPage.VerifyIncentiveGridEntry("//div[@id='ManageIncentiveProgramsGrid']/div/div[position()=3]", "Test", "24/04/2002","01/10/2002","Pending");
     Thread.Sleep(1000);
     Logout();
 }
 public LoginBase()
 {
     Logger = LoggerHelper.GetLogger(GetType());
     Lpage = new LoginPage(ObjectRepository.Driver);
     HPage = Lpage.LoginApplication(ObjectRepository.Config.GetUsername(), ObjectRepository.Config.GetPassword());
     Logger.Info("Test Execution Started");
 }
 public void ConfigurationPageSrcShot()
 {
     var lpage = new LoginPage(ObjectRepository.Driver);
     var hPage = lpage.LoginApplication(ObjectRepository.Config.GetUsername(), ObjectRepository.Config.GetPassword());
     hPage.TakeManageRolesScrShot("Manage Roles");
     hPage.TakeCustomeProfScrShot("Custome Profile");
     hPage.TakeCustomeAttributeScrShot("Custome Attribute");
     hPage.TakeManageCustomerContentScrShot("Manage Customer Content");
     hPage.Logout();
 }
 public void ProgramPageSrcShot()
 {
     var lpage = new LoginPage(ObjectRepository.Driver);
     var hPage = lpage.LoginApplication(ObjectRepository.Config.GetUsername(), ObjectRepository.Config.GetPassword());
     hPage.TakeHomePageScrShot("Home Page");
     hPage.TakeManageIncentScrShot("Manage Incentive Page");
     hPage.TakeManageClaimsScrShot("Manage Claims");
     hPage.TakeManualPointAdjScrShot("Manual Point Adjustment");
     hPage.TakeManageUserGrpScrShot("Manage User Groups");
     hPage.TakeManageUserScrShot("Manage Users");
     hPage.Logout();
 }
 public void OnboardingPageSrcShot()
 {
     var lpage = new LoginPage(ObjectRepository.Driver);
     var hPage = lpage.LoginApplication(ObjectRepository.Config.GetUsername(), ObjectRepository.Config.GetPassword());
     hPage.TakeNewCustomerScrShot("New Customer");
     hPage.TakeSfdcConfScrShot("SFDC Configuration");
     hPage.TakePrivacyPolicyScrShot("Privacy Policy");
     hPage.TakeTermsConditionScrShot("Terms and Condition");
     hPage.TakeContactUsScrShot("Contact Us");
     hPage.TakeFaqScrShot("Faq");
     hPage.Logout();
 }
 public void TestManageRolesScreen()
 {
     var lpage = new LoginPage(ObjectRepository.Driver);
     var hPage = lpage.LoginApplication(ObjectRepository.Config.GetUsername(), ObjectRepository.Config.GetPassword());
     var mPage = hPage.ClickManageRoles();
     var rdetailPage = mPage.ClickOnRoleName(Properties.Settings.Default.ManageRolesGrid, 1, 3); // Provide the row and column based on the role name to click
     rdetailPage.ClickSaveWithScreenShot("Roles Details 1");
     GenericHelper.WaitForElement(By.XPath(Properties.Settings.Default.ManageRolesGrid));
     rdetailPage = mPage.ClickOnRoleName(Properties.Settings.Default.ManageRolesGrid, 2, 3); // Provide the row and column based on the role name to click
     rdetailPage.ClickSaveWithScreenShot("Roles Details 2");
     rdetailPage.Logout();
 }
 public void TestGroup()
 {
     // Modify the grp name,row,column accordingly
     var grpName = "Grp-" + DateTime.UtcNow.ToString("yy-MM-dd-HH-mm");
     var lpage = new LoginPage(ObjectRepository.Driver);
     var hPage = lpage.LoginApplication(ObjectRepository.Config.GetUsername(), ObjectRepository.Config.GetPassword());
     var mUiPage = hPage.OpenManageUserGroups();
     mUiPage.SelectGroup(Properties.Settings.Default.UserGroupGrid, 1, 1);
     mUiPage.SelectGroup(Properties.Settings.Default.UserGroupGrid, 2, 1);
     mUiPage.CreateGrpOfGroup(grpName,grpName);
     mUiPage.Logout();
 }
 public void TestDuplicateGrps()
 {
     // Modify the grp name,row,column accordingly
     LoginPage lpage = new LoginPage(ObjectRepository.Driver);
     HomePage hPage = lpage.LoginApplication(ObjectRepository.Config.GetUsername(), ObjectRepository.Config.GetPassword());
     var mUiPage = hPage.OpenManageUserGroups();
     mUiPage.DuplicateGrp("//div[@id='UserGroupsGrid']",1,1);
     mUiPage.VerifyCreateGroup("//div[@id='UserGroupsGrid']", "Smartstage", 2,3);
     mUiPage.ClickOnUserGrp("//div[@id='UserGroupsGrid']", "StaticStage1", 1, 3);
     mUiPage.AddToGroup("//div[@id='allUsersGrid']", 1, 1);
     mUiPage.DeleteFrmGroup("//div[@id='GroupUsersGrid']", 1, 1);
     mUiPage.ClickSave();
     mUiPage.Logout();
     Thread.Sleep(5000);
 }
 public void PartnerPageSrcShot()
 {
     var lpage = new LoginPage(ObjectRepository.Driver);
     var hPage = lpage.LoginApplication(ObjectRepository.Config.GetUsername(), ObjectRepository.Config.GetPassword());
     hPage.TakeManagePartnerScrShot("Manage Partner");
     hPage.TakePatnerGrpScrShot("Partner Groups");
     hPage.TakeFileLoaderScrShot("File Loader");
     hPage.TakeFileStatusScrShot("File Status");
     hPage.TakeManageNotificationScrShot("Manage Notification Template");
     hPage.TakeManageNotiTriggerScrShot("Manage Notification Trigger");
     hPage.TakeManageSchedMsgScrShot("Manage Schedule Message");
     hPage.TakeEmailAnalyticsScrShot("Email Analytics");
     hPage.TakeReportsScrShot("Reports");
     hPage.Logout();
 }
 public void TestCreateGroup()
 {
     // Modify the grp name,row,column accordingly
     LoginPage lpage = new LoginPage(ObjectRepository.Driver);
     HomePage hPage = lpage.LoginApplication(ObjectRepository.Config.GetUsername(), ObjectRepository.Config.GetPassword());
     var mUiPage = hPage.OpenManageUserGroups();
     string name = "Test" + DateTime.UtcNow;
     mUiPage.CreateGroup(name, true);
     mUiPage.VerifyCreateGroup(Properties.Settings.Default.UserGroupGrid, "StaticStage1",1,3);
     mUiPage.ClickOnUserGrp(Properties.Settings.Default.UserGroupGrid, "StaticStage1", 1,3);
     mUiPage.AddToGroup(Properties.Settings.Default.AllUserGrid,1,1);
     mUiPage.DeleteFrmGroup("//div[@id='GroupUsersGrid']", 1, 1);
     mUiPage.ClickSave();
     mUiPage.Logout();
     Thread.Sleep(5000);
 }
 public void TestNewClaim()
 {
     var lpage = new LoginPage(ObjectRepository.Driver);
     var hPage = lpage.LoginApplication(ObjectRepository.Config.GetUsername(), ObjectRepository.Config.GetPassword());
     var clPage = hPage.OpeNewClaimPage();
     clPage.SelectNewClaim("Test expire");
     clPage.InsertNumber("10","10","11","12"); // pass null if field is not at page
     clPage.SelectOrderDate("10", "April", "2014"); // Do not call if field is not at page
     clPage.SelectBillDate("11", "April", "2015"); // Do not call if field is not at page
     clPage.SelectShipDate("12", "April", "2015"); // Do not call if field is not at page
     clPage.SelectInvoiceDate("11", "April","2015"); // Do not call if field is not at page
     clPage.InsertEmpPoInvoiceNo("1", "1", "122"); // pass null if field is not at page
     clPage.EnterProductDetails("SKU1", "1","1");
     //GridHelper.VerifyInGridEntry(Properties.Settings.Default.ClaimDataGrid, "SKU1", 1,1); // verify in gird Similarly for other column
        // clPage.ClickVerifyBtnInGrid(Properties.Settings.Default.ClaimDataGrid,1,7); // for Verify button in grid
     //clPage.ClickDeleteBtnInGrid(Properties.Settings.Default.ClaimDataGrid,1,8); // for delete button in grid
     //clPage.VerifyEstimatedTotalPts("100"); // for verifying the total esmt points
     var claimNo = clPage.SubmitClaim(); // will give u the claim no
     Console.WriteLine($"Claim No is : {claimNo}");
     clPage.Logout();
 }
 public void TestSalesIncentiveTemp()
 {
     LoginPage lpage = new LoginPage(ObjectRepository.Driver);
     HomePage hPage = lpage.LoginApplication(ObjectRepository.Config.GetUsername(), ObjectRepository.Config.GetPassword());
     ManageIncentivePrograms mIPage = hPage.OpenManageIncentivePrograms();
     NewProgram npPage = mIPage.ClickNewProgram();
     SalesIncentiveTemplateBasic sitPage = npPage.CreateSalesIncentiveTemplate();
     sitPage.SelectProgramName("Test", "Test");
     sitPage.SelectProgramVisibilityStartDate("05", "April", "2002");
     sitPage.SelectProgramVisibilityEndDate("01", "October", "2002");
     sitPage.SelectProgramStartDate("26", "April", "2002");
     sitPage.SelectProgramEndDate("30", "November", "2015");
     sitPage.SelectProgramLastSubmitDate("01", "December", "2015");
     sitPage.SelectProgramCloseDates("31", "December", "2015");
     sitPage.AddPoints("1001", "22");
     sitPage.AddPointType("test", "100");
     sitPage.AddProdProgramIncentive("10","prodSku","ProdDesc","PordFamily","ProdClass","ProdLine","ProdType","unitSoldMAx","unitSoldMin");
     sitPage.AddEligibleGroup("test",true,"test");
     sitPage.OpenValidationField();
     sitPage.AddInvoiceNoValidation(true,true,true);
     // Similarly for other validation
     sitPage.AddClaimAuditValidation(true,"100",true);
     Thread.Sleep(4000);
 }