Exemplo n.º 1
0
 public void Clear()
 {
     if (WrappedControl is null)
     {
         throw new NotFoundException("Element not found.");
     }
     WrappedControl.Clear();
     CaptureStepAndLogInfo(WrappedControl, "Clear value on the textbox.");
 }
Exemplo n.º 2
0
 public void Click()
 {
     if (WrappedControl is null)
     {
         throw new NotFoundException("Element not found.");
     }
     ExtentReportsHelper.LogInformation(CommonHelper.CaptureScreen(WrappedControl), $"Click on the Button '{WrappedControl.Text}'.");
     WrappedControl.Click();
 }
Exemplo n.º 3
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.");
     }
 }