コード例 #1
0
 public void ClearText()
 {
     AssertUITimeout.IsTrue(() =>
     {
         Element.SendKeys(Keys.Control + "a");
         Element.SendKeys(Keys.Delete);
         return(Element.Text == "");
     });
 }
コード例 #2
0
 public void IsActiveInput(TextBox input)
 {
     AssertUITimeout.IsTrue(() => input.Equals(browser.Driver.SwitchTo().ActiveElement()), "Failed to Switch to Active Input");
 }
コード例 #3
0
 public void IsActiveButton(Button loginButton)
 {
     AssertUITimeout.IsTrue(() => loginButton.Equals(browser.Driver.SwitchTo().ActiveElement()), "Failed to Switch to Active Button");
 }
コード例 #4
0
 public void CartContainerIsAvailable()
 {
     AssertUITimeout.IsTrue(() => controlFactory.FindElementById("cart_contents_container").Displayed, "Cart container is not displayed");
 }
コード例 #5
0
 public void BasketHasItems(string value)
 {
     AssertUITimeout.IsTrue(() => controlFactory.FindElementByClass("shopping_cart_badge").Text == value, "Count of products don't match");
 }
コード例 #6
0
 public void BasketIsEmpty()
 {
     AssertUITimeout.IsFalse(() => controlFactory.FindElementByClass("shopping_cart_badge").Displayed, "Basket is not empty");
 }
コード例 #7
0
 public void RequestedPageIsLoaded(string address)
 {
     AssertUITimeout.IsTrue(() => navigationDriver.VerifyTheRequestedPage(address), $"Failed to find the requested page { address }");
 }
コード例 #8
0
 public void LoginFailedWithError(string errorMessage)
 {
     AssertUITimeout.IsTrue(() => controlFactory.FindElementByClass("error-message-container error").Text == errorMessage, $"Failed to find the message: { errorMessage }");
 }