Beispiel #1
0
 public BingMainPage Search(string textToType)
 {
     SearchBox.Clear();
     SearchBox.SendKeys(textToType);
     GoButton.Click();
     return(this);
 }
Beispiel #2
0
 public void Search(string textToType)
 {
     // It is going to be implemented in the next article.
     ////this.SearchBox.Clear();
     ////this.SearchBox.SendKeys(textToType);
     GoButton.Click();
 }
Beispiel #3
0
 public void Calculate(decimal firstNumber, decimal secondNumber, string selectedOperator)
 {
     FirstValue.SendKeys(firstNumber.ToString());
     SecondValue.SendKeys(secondNumber.ToString());
     Operator.SendKeys(selectedOperator.ToString());
     GoButton.Click();
 }
 public void Search(string textToType)
 {
     if (string.IsNullOrEmpty(textToType))
     {
         throw new ArgumentException(nameof(textToType) + "cannot be null or empty.");
     }
     SearchBox.Clear();
     SearchBox.SendKeys(textToType);
     GoButton.Click();
 }
 public void ClickOnGoButton()
 {
     if (GoButton.Displayed)
     {
         GoButton.Click();
     }
     else
     {
         throw new Exception("Element is not found or not clickable");
     }
 }
 public void ClickOnGoButton()
 {
     if (GoButton.Displayed)
     {
         GoButton.Click();
     }
     else
     {
         Exception e;
     }
 }
Beispiel #7
0
 public void Search(string textToType)
 {
     SearchBox.Clear();
     SearchBox.SendKeys(textToType);
     GoButton.Click();
 }
 public void Search(string textToType)
 {
     SearchBox.Text = textToType;
     GoButton.Click();
 }
Beispiel #9
0
 public void InputBasketAddPosition(string text)
 {
     InputBasketAddCard.SendKeys(text);
     GoButton.Click();
 }
Beispiel #10
0
 public QuestionPage ClickGoButton()
 {
     GoButton.Click();
     return(new QuestionPage(_driver));
 }