示例#1
0
 public BingMainPage Search(string textToType)
 {
     SearchBox.Clear();
     SearchBox.SendKeys(textToType);
     GoButton.Click();
     return(this);
 }
示例#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();
 }
示例#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();
 }
示例#5
0
 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;
     }
 }
示例#7
0
 public void Search(string textToType)
 {
     SearchBox.Clear();
     SearchBox.SendKeys(textToType);
     GoButton.Click();
 }
 public void Search(string textToType)
 {
     SearchBox.Text = textToType;
     GoButton.Click();
 }
示例#9
0
 public void InputBasketAddPosition(string text)
 {
     InputBasketAddCard.SendKeys(text);
     GoButton.Click();
 }
示例#10
0
 public QuestionPage ClickGoButton()
 {
     GoButton.Click();
     return(new QuestionPage(_driver));
 }