Exemple #1
0
 public void PressSearchButon()
 {
     wait.Until(ExpectedConditions.ElementToBeClickable(SeachButton));
     SeachButton.Click();
     //driver.Close();
     wait.Until(ExpectedConditions.ElementIsVisible(By.XPath(SearchConstant.trip1CitiesText)));
 }
 private void TextBox_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         log.Debug("[USER ACTION]: Enter Key Pressed in Search Box");
         this.Focus();
         var tb = sender as TextBox;
         BindingExpression be = tb.GetBindingExpression(TextBox.TextProperty);
         be.UpdateSource();
         SeachButton.RaiseEvent(new RoutedEventArgs(Button.ClickEvent));
     }
 }