Пример #1
0
        /// <summary>
        /// find a student and click on the auto pop with the student found
        /// </summary>
        public void FindAStudentUsingAutoPopup()
        {
            SearchField.SendKeys(Data.ToString());
            FindStudentAutoCompleteLabel = new WebElementWrapper(ByFindStudentAutoCompleteLabel);
            string studentInfo = FindStudentAutoCompleteLabel.WaitUntilVisible(10).GetAttribute("title");

            if (studentInfo.Contains(Data.ToString()))
            {
                FindStudentAutoCompleteLabel.WaitUntilVisible(10).Click();
            }
        }
Пример #2
0
 /// <summary>
 /// set the standard document and standard name
 /// </summary>
 /// <param name="standardDocument">example...Ohio English Language Arts 2003</param>
 /// <param name="standardName">example...LA.1.R.1: Reading / Phonemic Awareness, Word Recognition and Fluency</param>
 /// <returns>this StandardControlsForm</returns>
 public StandardControlsForm SelectStandard(string standardDocument, string standardName)
 {
     _standardName = standardName;
     StandardSelect.Wait(3).SelectByText(standardDocument);
     standardName = standardName.Substring(0, 3); //Type just first 3 letters. Autocomplete popup will then appear.
     StandardNameText.Wait(5).SendKeys(standardName);
     StandardNameAutoCompleteLabel = new WebElementWrapper(ByStandardNameAutoCompleteLabel);
     StandardNameAutoCompleteLabel.WaitUntilVisible(10).Click();
     return(this);
 }
Пример #3
0
 /// <summary>
 /// is the question dropped on the answer?
 /// </summary>
 /// <param name="dragQuestion">the dragged question</param>
 public void IsQuestionDroppedOnAnswer(DraggableLineItem dragQuestion)
 {
     QuestionChoice = new WebElementWrapper(ByQuestionChoice(dragQuestion.Key));
     Assert.IsNotNull(QuestionChoice.WaitUntilVisible(3), "The question element is null, but should have been found.");
 }
Пример #4
0
 /// <summary>
 /// enter the passage title and select it
 /// </summary>
 public void EnterPassageTitle()
 {
     EnterPassageTitleText.Wait(3).SendKeys(Data.PassageTitle);
     EnterPassageTitleAutoCompleteLabel = new WebElementWrapper(ByEnterPassageTitleAutoCompleteLabel);
     EnterPassageTitleAutoCompleteLabel.WaitUntilVisible(10).Click();
 }