public bool IsÑontactCreated(int num, ContactData contact)
 {
     return(IsÑontactCreatedBase() &&
            driver.FindElement(By.XPath("(//input[@name='selected[]'])[" + num + 1 + "]")).Text
            == contact.Firstname);
 }
 public ContactHelper FillContactForm(ContactData contact)
 {
     Type(By.Name("firstname"), contact.Firstname);
     Type(By.Name("lastname"), contact.Lastname);
     return(this);
 }
        public string MakeAllContactString(ContactData data)
        {
            StringBuilder allContactInfo = new StringBuilder();

            if (data.Firstname != null)
            {
                allContactInfo.Append(data.Firstname);
            }
            if (data.Middlename != null)
            {
                allContactInfo.Append(" ");
                allContactInfo.Append(data.Middlename);
            }
            if (data.Lastname != "")
            {
                allContactInfo.Append(" ");
                allContactInfo.Append(data.Lastname);
            }
            if (data.Nickname != "")
            {
                allContactInfo.Append("\r\n");
                allContactInfo.Append(data.Nickname);
            }
            if (data.Title != "")
            {
                allContactInfo.Append("\r\n");
                allContactInfo.Append(data.Title);
            }
            if (data.Company != "")
            {
                allContactInfo.Append("\r\n");
                allContactInfo.Append(data.Company);
            }
            if (data.Address != "")
            {
                allContactInfo.Append("\r\n");
                allContactInfo.Append(data.Address);
            }
            if (data.HomePhone != "")
            {
                allContactInfo.Append("\r\n").Append("\r\n");
                allContactInfo.Append("H: ");
                allContactInfo.Append(data.HomePhone);
            }
            if (data.MobilePhone != "")
            {
                allContactInfo.Append("\r\n");
                allContactInfo.Append("M: ");
                allContactInfo.Append(data.MobilePhone);
            }
            if (data.WorkPhone != "")
            {
                allContactInfo.Append("\r\n");
                allContactInfo.Append("W: ");
                allContactInfo.Append(data.WorkPhone);
            }
            if (data.Fax != "")
            {
                allContactInfo.Append("\r\n");
                allContactInfo.Append("F: ");
                allContactInfo.Append(data.Fax);
            }
            if (data.Email != "")
            {
                allContactInfo.Append("\r\n").Append("\r\n");
                allContactInfo.Append(data.Email);
            }
            if (data.Email2 != "")
            {
                allContactInfo.Append("\r\n");
                allContactInfo.Append(data.Email2);
            }
            if (data.Email3 != "")
            {
                allContactInfo.Append("\r\n");
                allContactInfo.Append(data.Email3);
            }
            if (data.HomePage != "")
            {
                allContactInfo.Append("\r\n");
                allContactInfo.Append("Homepage:");
                allContactInfo.Append("\r\n");
                allContactInfo.Append(data.HomePage);
            }
            if (data.SecondaryAddress != "")
            {
                allContactInfo.Append("\r\n").Append("\r\n").Append("\r\n");
                allContactInfo.Append(data.SecondaryAddress);
            }
            if (data.SecondaryHomePhone != "")
            {
                allContactInfo.Append("\r\n").Append("\r\n");
                allContactInfo.Append("P: ");
                allContactInfo.Append(data.SecondaryHomePhone);
            }
            if (data.SecondaryNotes != "")
            {
                allContactInfo.Append("\r\n").Append("\r\n");
                allContactInfo.Append(data.SecondaryNotes);
            }
            return(allContactInfo.ToString());
        }