コード例 #1
0
 public void InputContactInformation(String address, String city, String stateCode, String zip, String contactPhone, String emailAddress)
 {
     AddressField.SendKeys(address);
     CityField.SendKeys(city);
     StateField.SendKeys(stateCode);
     ZipField.SendKeys(zip);
     ContactPhoneNumber.SendKeys(contactPhone);
     EmailField.SendKeys(emailAddress);
     if (IsElementDisplayed(ConfirmEmailField))
     {
         ConfirmEmailField.SendKeys(emailAddress);
     }
     NextButton.Click();
 }
        public void FillForm(AutomationPracticeModel user)
        {
            FirstName.SendKeys(user.FirstName);
            LastName.SendKeys(user.LastName);
            Password.SendKeys(user.Password);
            Address.SendKeys(user.Address);
            City.SendKeys(user.City);
            CountryField.SendKeys(user.CountryField + Keys.Tab);
            StateField.SendKeys(user.CountryField + Keys.Tab);
            //CountryFieldd(user.CountryField).Click();
            //StateFieldd(user.StateField).Click();
            PostalCode.SendKeys(user.PostalCode);
            PhoneNumber.SendKeys(user.PhoneNumber);

            ScrollTo(RegisterButton).Click();
        }
コード例 #3
0
 public void InputState(String state)
 {
     StateField.SendKeys(state);
 }