Beispiel #1
0
 public void ClickOnQuestionLink()
 {
     if (QuestionLink.Displayed)
     {
         QuestionLink.Click();
     }
     else
     {
         throw new Exception("Element is not found or not clickable");
     }
 }
 public void Question(string textToEnter, string name, string email, string age, string postcode)
 {
     QuestionLink.Click();
     QuestionField.Click();
     QuestionField1.SendKeys(textToEnter);
     Name.SendKeys(name);
     Email.SendKeys(email);
     Age.SendKeys(age);
     Postcode.SendKeys(postcode);
     SubmitButton.Click();
 }