public BingMainPage Search(string textToType) { SearchBox.Clear(); SearchBox.SendKeys(textToType); GoButton.Click(); return(this); }
public void Search(string textToType) { // It is going to be implemented in the next article. ////this.SearchBox.Clear(); ////this.SearchBox.SendKeys(textToType); GoButton.Click(); }
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; } }
public void Search(string textToType) { SearchBox.Clear(); SearchBox.SendKeys(textToType); GoButton.Click(); }
public void Search(string textToType) { SearchBox.Text = textToType; GoButton.Click(); }
public void InputBasketAddPosition(string text) { InputBasketAddCard.SendKeys(text); GoButton.Click(); }
public QuestionPage ClickGoButton() { GoButton.Click(); return(new QuestionPage(_driver)); }