Ejemplo n.º 1
0
        // Verifies the customer billing information.
        public YourDetails VerifyBillingInfo(Dictionary <string, string> infoEntered)
        {
            Dictionary <string, string> infoFound = GetBillingFields(infoEntered, "Your billing/contact details");

            foreach (KeyValuePair <string, string> pair in infoEntered)
            {
                if (pair.Key == "State")
                {
                    continue;
                }
                Utilities.CustomStringAssert(infoEntered[pair.Key], infoFound[pair.Key]);
            }

            return(this);
        }
Ejemplo n.º 2
0
        // Verifies the customer shipping information.
        public YourDetails VerifyShippingInfo(Dictionary <string, string> infoEntered)
        {
            if (driver.CustomFindElement("xpath; //h4[contains(text(), 'Shipping Address')]/ancestor::tbody//span[@id='shippingsameasbillingmessage']").GetAttribute("style") != "display: none;")
            {
                driver.CustomFindElement("xpath; //h4[contains(text(), 'Shipping Address')]/ancestor::tbody//input[@id='shippingSameBilling']").Click();
            }

            Dictionary <string, string> infoFound = GetBillingFields(infoEntered, "Shipping Address");

            foreach (KeyValuePair <string, string> pair in infoEntered)
            {
                if ("State, Phone".Contains(pair.Key))
                {
                    continue;
                }
                Utilities.CustomStringAssert(infoEntered[pair.Key], infoFound[pair.Key]);
            }

            return(this);
        }