public void Clear() { if (WrappedControl is null) { throw new NotFoundException("Element not found."); } WrappedControl.Clear(); CaptureStepAndLogInfo(WrappedControl, "Clear value on the textbox."); }
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."); } }