Ejemplo n.º 1
0
        public ContactHelper FillContactInfoData(ContactInfoData general)
        {
            Type(By.Name("firstname"), general.Firstname);
            Type(By.Name("middlename"), general.Middlename);
            Type(By.Name("lastname"), general.Lastname);
            Type(By.Name("nickname"), general.Nickname);
            Type(By.Name("title"), general.Title);
            Type(By.Name("company"), general.Company);
            Type(By.Name("address"), general.Address);

            Type(By.Name("home"), general.Home);
            Type(By.Name("mobile"), general.Mobile);
            Type(By.Name("work"), general.Work);
            Type(By.Name("fax"), general.Fax);

            Type(By.Name("email"), general.Email);
            Type(By.Name("email2"), general.Email2);
            Type(By.Name("email3"), general.Email3);
            Type(By.Name("homepage"), general.Homepage);

            SetTime(By.Name("bday"), general.Birthday);
            SetTime(By.Name("bmonth"), general.Birthmonth);
            Type(By.Name("byear"), general.Birthyear);
            SetTime(By.Name("aday"), general.Anniversaryday);
            SetTime(By.Name("amonth"), general.Anniversarymonth);
            Type(By.Name("ayear"), general.Anniversaryyear);

            Type(By.Name("address2"), general.SecondaryAddress);
            Type(By.Name("phone2"), general.Phone);
            Type(By.Name("notes"), general.Notes);
            return(this);
        }
        public void ContactCreationTest()
        {
            ContactInfoData general = new ContactInfoData("Firstname")
            {
                Middlename       = "Middlename",
                Lastname         = "Lastname",
                Nickname         = "Nickname",
                Title            = "Title",
                Company          = "Company",
                Address          = "Address",
                Home             = "Home",
                Mobile           = "Mobile",
                Work             = "Work",
                Fax              = "Fax",
                Email            = "E-mail",
                Email2           = "E-mail2",
                Email3           = "E-mail3",
                Homepage         = "Homepage",
                Birthday         = "1",
                Birthmonth       = "January",
                Birthyear        = "1999",
                Anniversaryday   = "1",
                Anniversarymonth = "January",
                Anniversaryyear  = "1999",
                SecondaryAddress = "Address",
                phone            = "Phone",
                notes            = "Notes"
            };

            //List<ContactInfoData> oldContacts = app.Contacts.GetContactList();

            app.Contacts.Create(general);
        }
Ejemplo n.º 3
0
 public ContactHelper Create(ContactInfoData general)
 {
     InitNewContactCreation();
     FillContactInfoData(general);
     SubmitContactCreation();
     //app.Auth.Logout();
     return(this);
 }
Ejemplo n.º 4
0
 public ContactHelper Modify(ContactInfoData newContactDate)
 {
     manager.Navigator.GoToHomePage();
     IsContactOnThePage();
     InitContactModification();
     FillContactInfoData(newContactDate);
     SubmitContactModification();
     return(this);
 }
        public void ContactModificationTest()
        {
            ContactInfoData newContactDate = new ContactInfoData("Zoo_New");

            newContactDate.Middlename = "Zoo_New";
            newContactDate.Lastname   = "Zoo_New";

            app.Contacts.Modify(newContactDate);
        }