コード例 #1
0
        public ShippingOptionPage CreateShippingAddress(ShippingAddressInfo shippingAddressInfo)
        {
            FullNameField.Clear();
            FullNameField.SendKeys(shippingAddressInfo.FullName);

            AddressLineFirstField.Clear();
            AddressLineFirstField.SendKeys(shippingAddressInfo.AddressLineFirst);

            AddressLineSecondField.Clear();
            AddressLineSecondField.SendKeys(shippingAddressInfo.AddressLineSecond);

            CityField.Clear();
            CityField.SendKeys(shippingAddressInfo.City);

            StateProvinceRegionField.Clear();
            StateProvinceRegionField.SendKeys(shippingAddressInfo.StateProvinceRegion);

            ZIPField.Clear();
            ZIPField.SendKeys(shippingAddressInfo.ZIP);

            SelectElement CountryDropDown = new SelectElement(Country);

            CountryDropDown.SelectByText(shippingAddressInfo.Country);

            PhoneNumberField.Clear();
            PhoneNumberField.SendKeys(shippingAddressInfo.PhoneNumber);

            //SelectElement WeekendDeliveryDropDown = new SelectElement(WeekendDelivery);
            //WeekendDeliveryDropDown.SelectByText(shippingAddressInfo.WeekendDelivery);

            SecurityAccessCodeField.Clear();
            SecurityAccessCodeField.SendKeys(shippingAddressInfo.SecurityAccessCode);

            ShipTothisAdressButton.Click();
            return(new ShippingOptionPage(_driver));
        }
コード例 #2
0
 public void ClearRegisterCityField()
 {
     CityField.Clear();
 }
コード例 #3
0
        public void FillForm()
        {
            IsVisible(By.Id("AddressLine1Field"));
            AddressLine1Field.Clear();
            SendData(AddressLine1Field, "1");

            IsVisible(By.Id("AddressLine2Field"));
            AddressLine2Field.Clear();
            SendData(AddressLine2Field, "1");

            IsVisible(By.Id("BusinessPhoneField"));
            BusinessPhoneField.Clear();
            SendData(BusinessPhoneField, "1");

            IsVisible(By.Id("CityField"));
            CityField.Clear();
            SendData(CityField, "1");

            IsVisible(By.Id("CompanyPhoneField"));
            CompanyPhoneField.Clear();
            SendData(CompanyPhoneField, "1");

            IsVisible(By.Id("ContactAddressLine1Field"));
            ContactAddressLine1Field.Clear();
            SendData(ContactAddressLine1Field, "1");

            IsVisible(By.Id("ContactAddressLine2Field"));
            ContactAddressLine2Field.Clear();
            SendData(ContactAddressLine2Field, "1");

            IsVisible(By.Id("ContactCityField"));
            ContactCityField.Clear();
            SendData(ContactCityField, "1");

            IsClickable(ContactStateField);
            ContactStateFieldOption.SelectByIndex(1);

            IsVisible(By.Id("ContactZipField"));
            ContactZipField.Clear();
            SendData(ContactZipField, "1");

            IsVisible(By.Id("EmailField"));
            EmailField.Clear();
            SendData(EmailField, "1");

            IsVisible(By.Id("FirstNameField"));
            FirstNameField.Clear();
            SendData(FirstNameField, "1");

            IsVisible(By.Id("LastNameField"));
            LastNameField.Clear();
            SendData(LastNameField, "1");

            IsVisible(By.Id("MiddleNameField"));
            MiddleNameField.Clear();
            SendData(MiddleNameField, "1");

            IsVisible(By.Id("MobilePhoneField"));
            MobilePhoneField.Clear();
            SendData(MobilePhoneField, "1");

            IsVisible(By.Id("OrganizationNameFilteredField"));
            OrganizationNameFilteredField.Clear();
            SendData(OrganizationNameFilteredField, "1");

            IsClickable(OrganizationTypeField);
            OrganizationTypeFieldOption.SelectByIndex(1);

            IsVisible(By.Id("OrganizationWebsiteField"));
            OrganizationWebsiteField.Clear();
            SendData(OrganizationWebsiteField, "1");

            IsClickable(OwnerField);
            OwnerFieldOption.SelectByIndex(1);

            IsClickable(ProgramField);
            ProgramFieldOption.SelectByIndex(1);

            IsVisible(By.Id("SameAddressField"));
            SameAddressField.Clear();
            SendData(SameAddressField, "1");

            IsClickable(SectorField);
            SectorFieldOption.SelectByIndex(1);

            IsClickable(SolicitationField);
            SolicitationFieldOption.SelectByIndex(1);

            IsClickable(StateField);
            StateFieldOption.SelectByIndex(1);

            IsVisible(By.Id("TitleField"));
            TitleField.Clear();
            SendData(TitleField, "1");

            IsVisible(By.Id("ZipField"));
            ZipField.Clear();
            SendData(ZipField, "1");
        } // close FillForm
コード例 #4
0
 public void ClearCityField()
 {
     CityField.Clear();
 }