Example #1
0
 public CheckoutOverview AddInformation(CheckoutPageBO addInformationCheckoutBO)
 {
     TxtFirstName.SendKeys(addInformationCheckoutBO.FirstName);
     TxtLastName.SendKeys(addInformationCheckoutBO.LastName);
     TxtZipCode.SendKeys(addInformationCheckoutBO.ZipCode);
     BtnContinue.Click();
     return(new CheckoutOverview(driver));
 }
Example #2
0
        public ChackoutOverveaw AddInformation(CheckoutPageBO addInformationCheckoutBO)
        {
            TxtFirstName.SendKeys(addInformationCheckoutBO.FirstName);
            TxtLastName.SendKeys(addInformationCheckoutBO.LastName);
            TxtZipCode.SendKeys(addInformationCheckoutBO.ZipCode);



            BtnContinue.Click();
            return(new ChackoutOverveaw(driver));
            //btn_action cart_button - class name pentru butonul de finish
        }
        public AddressDetailsPage.AddressDetailsPage AddAddress(AddAddressBO addAddressBo)
        {
            TxtFirstName.SendKeys(addAddressBo.FirstName);
            TxtLastName.SendKeys(addAddressBo.LastName);
            TxtAddress1.SendKeys(addAddressBo.Address1);
            TxtCity.SendKeys(addAddressBo.City);
            var selectState = new SelectElement(DdlState);

            selectState.SelectByText(addAddressBo.State);
            TxtZipCode.SendKeys(addAddressBo.ZipCode);
            LstCountry[addAddressBo.Country].Click();

            var js = (IJavaScriptExecutor)driver;

            js.ExecuteScript("arguments[0].setAttribute('value', arguments[1])", BtnColor, addAddressBo.Color);

            BtnCreateAddress.Click();
            return(new AddressDetailsPage.AddressDetailsPage(driver));
        }