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(); }
protected void CaptureStepAndLogInfo(IWebElement control, string message = "") { if (control is null) { CaptureStepAndLogInfo(message); } else { ExtentReportsHelper.LogInformation(CommonHelper.CaptureScreen(control), message); } }
protected void CaptureStepAndLogInfo(string message = "") { ExtentReportsHelper.LogInformation(CommonHelper.CaptureScreen(WrappedControl), message); }
public void ThenILogOut() { PracticePage.Instance.LogOut(); ExtentReportsHelper.LogInformation(CommonHelper.CaptureScreen(), "------------------------------"); }