예제 #1
0
        /// <summary>
        /// Find Affinity ID after providing special character as affinity id
        /// </summary>
        public String SpecialCharAffinityIdNegativeTest(string SpecialChAffinity)
        {
            CatalogAndPricingPage.SpecialCharAffinityNegative(SpecialChAffinity);
            string affinityIdAfterProvidingSpecialChar = CatalogAndPricingPage.AffinityId.GetAttribute("value");

            return(affinityIdAfterProvidingSpecialChar);
        }
예제 #2
0
        /// <summary>
        /// Find Affinity ID after providing alphabets as affinity id
        /// </summary>
        public string AlphabetsAffinityIdNegativeTest(string alphaAffinity)
        {
            CatalogAndPricingPage.AlphabetAffinityNegative(alphaAffinity);
            string affinityIdAfterProvidingAlphabet = CatalogAndPricingPage.AffinityId.GetAttribute("value");

            return(affinityIdAfterProvidingAlphabet);
        }
예제 #3
0
 public bool CustomerAndLocalChnNumDisplay(string accountId)
 {
     HomePage.GoToCatalogAndPricingPage(accountId);
     CatalogAndPricingPage.GoToAdressWizardPage();
     webDriver.SwitchTo().Frame(0);
     return(AddressWizardPage.CustomerNumberColumnText().Contains("Customer #") && AddressWizardPage.ChannelNumberColumnText().Contains("Local Channel #"));
 }
예제 #4
0
 public bool BillToAddSearchBy(string accountId)
 {
     HomePage.GoToCatalogAndPricingPage(accountId);
     CatalogAndPricingPage.GoToAdressWizardPage();
     webDriver.SwitchTo().Frame(0);
     return(AddressWizardPage.CheckLocalChannelNumber());
 }
예제 #5
0
        /// <summary>
        /// Find Affinity ID after providing alphabets as affinity id
        /// </summary>
        public string NumericAffinityId(string NumericVal)
        {
            webDriver.WaitForElementVisible(By.Id("ctl00_ContentPageHolder_txt_AffAccountID"), TimeSpan.FromSeconds(20));
            CatalogAndPricingPage.NumericAffinityPositive(NumericVal);
            string affinityIdAfterProvidingNumeric = CatalogAndPricingPage.AffinityId.GetAttribute("value");

            return(affinityIdAfterProvidingNumeric);
        }
예제 #6
0
 public string BillToAddressRefreshHyperlink(string accountId)
 {
     HomePage.GoToCatalogAndPricingPage(accountId);
     CatalogAndPricingPage.GoToAdressWizardPage();
     webDriver.SwitchTo().Frame(0);
     AddressWizardPage.BillToAddHyperLinkClick();
     return(AddressWizardPage.BillToAddUpdateTextCValidate());
 }
예제 #7
0
 public bool ShipToAddressCheck(string accountId)
 {
     HomePage.GoToCatalogAndPricingPage(accountId);
     CatalogAndPricingPage.GoToAdressWizardPage();
     webDriver.SwitchTo().Frame(0);
     AddressWizardPage.ShipToAddress();
     return(ShipToAddressPage.SelectShipToAddOptions());
 }
예제 #8
0
 public bool BillToAddSearchOption(string accountId, string localChannelNumber)
 {
     HomePage.GoToCatalogAndPricingPage(accountId);
     CatalogAndPricingPage.GoToAdressWizardPage();
     webDriver.SwitchTo().Frame(0);
     AddressWizardPage.SelectLocalChannelOption();
     AddressWizardPage.SearchByLocalChannelNumber(localChannelNumber);
     return(AddressWizardPage.FindLocalChannel(localChannelNumber));
 }
예제 #9
0
 public bool SearchByAlphaNumericLocalChannelNumber(string accountId, string localChannelNumber)
 {
     HomePage.GoToCatalogAndPricingPage(accountId);
     CatalogAndPricingPage.GoToAdressWizardPage();
     webDriver.SwitchTo().Frame(0);
     AddressWizardPage.SelectLocalChannelOption();
     AddressWizardPage.SearchByLocalChannelNumber(localChannelNumber);
     return(AddressWizardPage.CheckIfResultsTableIsAvailable());
 }
예제 #10
0
 /// <summary>
 /// method to select Local Channel # from Drop Down and passing the value in search field
 /// </summary>
 /// <param name="accountId"></param>
 /// <param name="localChannelValue"></param>
 /// <returns>false,if local channel # is not displayed</returns>
 public bool CheckLocalChannelNumber(string accountId, string localChannelValue)
 {
     HomePage.GoToCatalogAndPricingPage(accountId);
     CatalogAndPricingPage.GoToAdressWizardPage();
     webDriver.SwitchTo().Frame(0);
     AddressWizardPage.SelectLocalChannelOption();
     AddressWizardPage.SearchByLocalChannelNumber(localChannelValue);
     return(AddressWizardPage.ChannelNumberColumnTextExist());
 }
예제 #11
0
        public string CheckOmsAdd(string accountId, string localChannelNumber)
        {
            HomePage.GoToCatalogAndPricingPage(accountId);
            CatalogAndPricingPage.GoToAdressWizardPage();
            webDriver.SwitchTo().Frame(0);
            AddressWizardPage.SelectLocalChannelOption();
            AddressWizardPage.SearchByLocalChannelNumber(localChannelNumber);
            string p = AddressWizardPage.OmsAdd(localChannelNumber);

            return(p);
        }
예제 #12
0
 public void UpdateAffinity()
 {
     CatalogAndPricingPage.UpdateAffinityId();
 }
예제 #13
0
 /// <summary>
 /// Find Affinity ID after providing Zero as affinity id
 /// </summary>
 public void ZeroAffinityIdNegativeTest(string num)
 {
     CatalogAndPricingPage.ZeroAffinityNegative(num);
     // Try to update Affinity ID with zero value
     CatalogAndPricingPage.UpdateAffinityId();
 }