Exemple #1
0
        public void GetQuoteInfo(GetQuote getQuote)
        {
            InputData.Data.CarrierName = getQuote.GetCarrierName;
            var QuoteValue = getQuote.GetQuotes.Replace("$", "");

            QuoteValue           = getQuote.GetQuotes.Replace("USD", "");
            InputData.Data.Quote = Convert.ToDouble(QuoteValue);
        }
Exemple #2
0
        public GetQuote GetQuoteInfo()
        {
            GetQuote getQuote = new GetQuote();

            Driver.WaitForAngular();

            bool clicked = false;
            int  counter = 0;

            while (clicked == false && counter < QuoteMaxWait)
            {
                try
                {
                    IWebElement eleAmount       = Driver.GetRepeaterInfo("quote in quotes", 0, lblAmount);
                    IWebElement eleAmountChange = Driver.GetRepeaterInfo("quote in quotes", 0, lblAmountChange);
                    IWebElement eleCarrierName  = Driver.GetRepeaterInfo("quote in quotes", 0, lblCarrierName);

                    getQuote.GetQuotes      = eleAmount.Text + eleAmountChange.Text;
                    getQuote.GetCarrierName = eleCarrierName.Text;

                    eleAmount = Driver.GetRepeaterInfo("quote in quotes", 0, lblAmount);
                    Driver.GetRepeaterButton("quote in quotes", 0, btnGoshipQuote);
                    clicked = true;
                }
                catch
                {
                    Driver.Sleep();
                    counter++;
                }
            }
            if (clicked == false)
            {
                Assert.Fail("Unable to select LTL quote - Took too long for quotes to load");
            }

            return(getQuote);
        }