Exemplo n.º 1
0
 private void ClearForm()
 {
     UserNameField.Clear();
     PasswordField.Clear();
     RetypePasswordField.Clear();
     EmailField.Clear();
 }
Exemplo n.º 2
0
 public void Login(params string[] credentials)
 {
     EmailField.Clear();
     EmailField.SendKeys(credentials.First());
     PasswordField.Clear();
     PasswordField.SendKeys(credentials.Last());
     LoginButton.Click();
 }
 //Clears the search fields so all customers are shown again.
 private void ResetButton_Click(object sender, RoutedEventArgs e)
 {
     FirstnameField.Clear();
     LastnameField.Clear();
     EmailField.Clear();
     CountryField.Clear();
     InitializeControl();
 }
Exemplo n.º 4
0
 public void FillForm(string firstName, string lastName, string pass, string email, string address, string city, string postcode, string phone)
 {
     if (firstName != "")
     {
         Driver.ScrollToElement(FirstNameField);
         FirstNameField.SendKeys(firstName);
     }
     if (lastName != "")
     {
         Driver.ScrollToElement(LastNameField);
         LastNameField.SendKeys(lastName);
     }
     if (pass != "")
     {
         Driver.ScrollToElement(PasswordField);
         PasswordField.SendKeys(pass);
     }
     if (email != "")
     {
         if (email == "none")
         {
             Driver.ScrollToElement(EmailField);
             EmailField.Clear();
         }
         else
         {
             Driver.ScrollToElement(EmailField);
             EmailField.TypeText(email);
         }
     }
     if (address != "")
     {
         Driver.ScrollToElement(AddressField);
         AddressField.SendKeys(address);
     }
     if (city != "")
     {
         Driver.ScrollToElement(CityField);
         CityField.SendKeys(city);
     }
     if (postcode != "")
     {
         Driver.ScrollToElement(PostalCode);
         PostalCode.SendKeys(postcode);
     }
     if (phone != "")
     {
         MobilePhone.SendKeys(phone);
     }
 }
Exemplo n.º 5
0
        public void FillForm()
        {
            IsVisible(By.Id("ConfirmPasswordField"));
            ConfirmPasswordField.Clear();
            SendData(ConfirmPasswordField, "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("MiddeNameField"));
            MiddeNameField.Clear();
            SendData(MiddeNameField, "1");

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

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

            IsClickable(SecurityGroupField);
            SecurityGroupFieldOption.SelectByIndex(1);

            IsVisible(By.Id("UsernameField"));
            UsernameField.Clear();
            SendData(UsernameField, "1");
        } // close FillForm
 public void FillInEmailField(string email)
 {
     EmailField.Clear();
     EmailField.SendKeys(email);
 }
Exemplo n.º 7
0
 private void EffacerContenuTextBox()
 {
     EmailField.Clear();  NomField.Clear();  PrenomField.Clear();
     PassField.Clear();  ConfirmPassField.Clear();
 }
Exemplo n.º 8
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
 public void ClearEmailField()
 {
     EmailField.Clear();
 }