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