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