/// <summary> /// Removes a name from the collection using the specified index. /// </summary> /// <param name="index"></param> private void RemoveNameAt(int index) { names[index] = null; UpdateListBox(); PositionInput.Clear(); }
/// <summary> /// Fills all fields with dummy data. /// <para>Does not fill <End of work>, checks <To present>.</para> /// </summary> public void FillAllFields() { //fill start of work SelectElement se = new SelectElement(StartOfWorkDropdown_Month); se.SelectByIndex(3); se = new SelectElement(StartOfWorkDropdown_Year); se.SelectByIndex(3); //make it present CheckBox.Click(); //fill organization OrganizationInput.Clear(); OrganizationInput.SendKeys("TestOrganization"); //fill position PositionInput.Clear(); PositionInput.SendKeys("TestOrganization"); //fill Responsibilities ResponsibilitiesInput.Clear(); ResponsibilitiesInput.SendKeys("TestOrganization"); }