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