public bool AmountDueMatches(string amountDue)
 {
     try
     {
         _actAndWaitUntilAssertion.WaitForElementWithRetry($"//section[contains(@class, 'checkoutAmountComponent') and //*[normalize-space(text())='{amountDue}']]");
         return(true);
     }
     catch (WebDriverTimeoutException)
     {
         return(false);
     }
 }
 public bool MatchesItemExpectations(int index, ShoppingCartItem expected)
 {
     try
     {
         var xpath = MatchesLineItemExpectationsXPath(index, expected);
         _actAndWaitUntilAssertion.WaitForElementWithRetry(xpath);
         return(true);
     }
     catch (WebDriverTimeoutException)
     {
         return(false);
     }
 }