public static void GoToPayment() { try { SeleniumSetMethod.ElementPresent(chcbxIAgree); SeleniumSetMethod.ElementEnabled(chcbxIAgree); SeleniumSetMethod.CheckBox(chcbxIAgree); SeleniumSetMethod.ElementPresent(btnProccedToPayment); SeleniumSetMethod.ElementEnabled(btnProccedToPayment); SeleniumSetMethod.Clicks(btnProccedToPayment); string urlAdress = WebDriver.driver.Url; SeleniumSetMethod.WaitForPageToLoad(WebDriver.driver, 35); SeleniumGetMethods.PageLoaded(urlAdress, "shipping"); Console.WriteLine("Procceded to payment successfully!"); } catch (Exception e) { Console.WriteLine("Adding Product quantity failed: {0}", e); } }