예제 #1
0
 public void ClickOnQuestionLink()
 {
     if (QuestionLink.Displayed)
     {
         QuestionLink.Click();
     }
     else
     {
         throw new Exception("Element is not found or not clickable");
     }
 }
예제 #2
0
 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();
 }