/// <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); }
/// <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); }
public bool CustomerAndLocalChnNumDisplay(string accountId) { HomePage.GoToCatalogAndPricingPage(accountId); CatalogAndPricingPage.GoToAdressWizardPage(); webDriver.SwitchTo().Frame(0); return(AddressWizardPage.CustomerNumberColumnText().Contains("Customer #") && AddressWizardPage.ChannelNumberColumnText().Contains("Local Channel #")); }
public bool BillToAddSearchBy(string accountId) { HomePage.GoToCatalogAndPricingPage(accountId); CatalogAndPricingPage.GoToAdressWizardPage(); webDriver.SwitchTo().Frame(0); return(AddressWizardPage.CheckLocalChannelNumber()); }
/// <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); }
public string BillToAddressRefreshHyperlink(string accountId) { HomePage.GoToCatalogAndPricingPage(accountId); CatalogAndPricingPage.GoToAdressWizardPage(); webDriver.SwitchTo().Frame(0); AddressWizardPage.BillToAddHyperLinkClick(); return(AddressWizardPage.BillToAddUpdateTextCValidate()); }
public bool ShipToAddressCheck(string accountId) { HomePage.GoToCatalogAndPricingPage(accountId); CatalogAndPricingPage.GoToAdressWizardPage(); webDriver.SwitchTo().Frame(0); AddressWizardPage.ShipToAddress(); return(ShipToAddressPage.SelectShipToAddOptions()); }
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)); }
public bool SearchByAlphaNumericLocalChannelNumber(string accountId, string localChannelNumber) { HomePage.GoToCatalogAndPricingPage(accountId); CatalogAndPricingPage.GoToAdressWizardPage(); webDriver.SwitchTo().Frame(0); AddressWizardPage.SelectLocalChannelOption(); AddressWizardPage.SearchByLocalChannelNumber(localChannelNumber); return(AddressWizardPage.CheckIfResultsTableIsAvailable()); }
/// <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()); }
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); }
public void UpdateAffinity() { CatalogAndPricingPage.UpdateAffinityId(); }
/// <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(); }