Beispiel #1
0
        public void SetStateDropdown(string state)
        {
            IZWebDriver.MoveToAnElement(By.CssSelector("#id_state"), 20);
            var selectElement4 = new SelectElement(StateDropdown);

            selectElement4.SelectByText(state);
        }
 public void Quit()
 {
     IZWebDriver.Quit();
 }
        //Objects in the Page
        //TODO: Create all the objects of the Page Home

        public Home()
        {
            IZWebDriver.NGNavigate().GoToUrl("http://automationpractice.com/index.php");
        }
        //Functions
        public void ClickProduct(string nameProduct)
        {
            var product = IZWebDriver.FindElement(By.CssSelector($"#homefeatured h5 a[title='{nameProduct}']"));

            product.Click();
        }
Beispiel #5
0
        public bool IsMyOrderCompleted()
        {
            var text = IZWebDriver.FindElement(By.CssSelector("p strong"));

            return(text.Text.Equals("Your order on My Store is complete."));
        }