示例#1
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 #"));
 }
示例#2
0
 public bool BillToAddSearchBy(string accountId)
 {
     HomePage.GoToCatalogAndPricingPage(accountId);
     CatalogAndPricingPage.GoToAdressWizardPage();
     webDriver.SwitchTo().Frame(0);
     return(AddressWizardPage.CheckLocalChannelNumber());
 }
示例#3
0
 public string BillToAddressRefreshHyperlink(string accountId)
 {
     HomePage.GoToCatalogAndPricingPage(accountId);
     CatalogAndPricingPage.GoToAdressWizardPage();
     webDriver.SwitchTo().Frame(0);
     AddressWizardPage.BillToAddHyperLinkClick();
     return(AddressWizardPage.BillToAddUpdateTextCValidate());
 }
示例#4
0
 public bool ShipToAddressCheck(string accountId)
 {
     HomePage.GoToCatalogAndPricingPage(accountId);
     CatalogAndPricingPage.GoToAdressWizardPage();
     webDriver.SwitchTo().Frame(0);
     AddressWizardPage.ShipToAddress();
     return(ShipToAddressPage.SelectShipToAddOptions());
 }
示例#5
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));
 }
示例#6
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());
 }
示例#7
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());
 }
示例#8
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);
        }
示例#9
0
        /// <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());
        }