public static void ClickConfirmAndCapture() { Logger.AddClickAction("ConfirmAndCapture"); //click confirm button var confirmBtn = Driver.Instance.FindElement(By.Id("submitPaymentButton")); confirmBtn.Click(); //capture the page load time NonFunctionalReq.CaptureTime(() => Driver.Instance.FindElementWithTimeout(By.Id("threedspage"), 40, "3DS Page not loaded within 60 sec"), "3DS Page load time is"); //capture screenshot NonFunctionalReq.GetScreenShot("3DS Page"); }