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()); }
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); }
/// <summary> /// Steps through the workflow. /// </summary> /// <returns> /// The view object where the workflow end. /// </returns> public override FinishedWizardPage StepThrough() { // Enter name Start.FirstName = "Some first name"; Start.Surname = "Some surname"; // Click next AddressWizardPage addressWizardPage = Start.ClickNext(); // Enter address addressWizardPage.Address = "Some address"; addressWizardPage.City = "Some city"; addressWizardPage.PostalCode = "Some postal code"; addressWizardPage.State = "Some state"; // Click next return(addressWizardPage.ClickNext()); }