public static void ClickBookNow() { Logger.AddClickAction("BookNow"); Driver.Instance.WaitForAjax(); Thread.Sleep(1000); //find and click the 'Book Now!" button IWebElement bookNowBtn = Driver.Instance.FindElement(By.LinkText("Continue")); bookNowBtn.Click(); //capture time that takes to load summary page PaymentPage.WaitForLoad(); }
public static void ClickBookNowAndCapture() { Logger.AddClickAction("BookNowAndCapture"); SaveBasketGUID(); Driver.Instance.WaitForAjax(); //find and click the 'Book Now!" button IWebElement bookNowBtn = Driver.Instance.FindElement(By.LinkText("Continue")); bookNowBtn.Click(); //capture time that takes to load summary page PaymentPage.WaitForLoad(); //capture screenshot //NonFunctionalReq.GetScreenShot("Payment Page"); }