コード例 #1
0
 /// <summary>
 /// Fills all the fields in the block with dummy data.
 /// </summary>
 public void FillAllFieldsWithDummyData()
 {
     UserNameInput.Clear();
     UserNameInput.SendKeys("TestName");
     UserSurnameInput.Clear();
     UserSurnameInput.SendKeys("TestSurname");
     PhoneNumberInput.Clear();
     PhoneNumberInput.SendKeys("258887744");
     SkypeInput.Clear();
     SkypeInput.SendKeys("TestSkype");
     LinkedInInput.Clear();
     LinkedInInput.SendKeys("TestLinkedIn");
 }
コード例 #2
0
        /// <summary>
        /// Fills the corresponding input with pre-defined data and adds it to the list.
        /// </summary>
        /// <param name="inputName"></param>
        /// <param name="listToUpdate"></param>
        public void FillInputWithDummyData(string inputName, IList <string> listToUpdate)
        {
            switch (inputName)
            {
            case "Name":
                UserNameInput.Clear();
                UserNameInput.SendKeys("TestName");
                listToUpdate.Add("TestName");
                break;

            case "Surname":
                UserSurnameInput.Clear();
                UserSurnameInput.SendKeys("TestSurname");
                listToUpdate.Add("TestSurname");
                break;

            case "Phone number":
                PhoneNumberInput.Clear();
                PhoneNumberInput.SendKeys("258887744");
                listToUpdate.Add("258887744");
                break;

            case "Skype":
                SkypeInput.Clear();
                SkypeInput.SendKeys("TestSkype");
                listToUpdate.Add("TestSkype");
                break;

            case "LinkedIn":
                LinkedInInput.Clear();
                LinkedInInput.SendKeys("TestLinkedIn");
                listToUpdate.Add("TestLinkedIn");
                break;

            default:
                break;
            }
        }