private static void AssertPaymentFailed(FirefoxDriver seleniumInstance)
 {
     //should move to a thanks page
     var thanksElement = seleniumInstance.FindElementByText("This card was declined");
     Assert.IsNotNull(thanksElement);
 }
 private static void AssertPaymentSuccess(FirefoxDriver seleniumInstance)
 {
     //should move to a thanks page
     var thanksElement = seleniumInstance.FindElementByText("Thanks");
     Assert.IsNotNull(thanksElement);
 }
 private void CheckOrderSummary(FirefoxDriver seleniumInstance)
 {
     //should charge vat
     var vatEl = seleniumInstance.FindElementByText("VAT");
     Assert.IsNotNull(vatEl);
     var totalEl = seleniumInstance.FindElementByText("£5.04");
     Assert.IsNotNull(totalEl,"Should have total cost of £5.04 on page");
     var continueButton = seleniumInstance.FindElementById("btnConfirmAndPay") as IWebElement;
     continueButton.ClickWithJavascript(seleniumInstance);
 }