예제 #1
0
 public void Clear()
 {
     if (WrappedControl is null)
     {
         throw new NotFoundException("Element not found.");
     }
     WrappedControl.Clear();
     CaptureStepAndLogInfo(WrappedControl, "Clear value on the textbox.");
 }
예제 #2
0
 public void SendKeys(string text)
 {
     if (WrappedControl is null)
     {
         throw new NotFoundException("Element not found.");
     }
     WrappedControl.Clear();
     WrappedControl.SendKeys(text);
     if (!text.Contains(Keys.Tab) & !text.Contains(Keys.Enter) & !text.Contains(Keys.Escape))
     {
         CaptureStepAndLogInfo(WrappedControl, $"Input '{text}' to the textbox.");
     }
 }