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