Ejemplo n.º 1
0
        public void checkOutItem()
        {
            try
            {
                Common.waitForElementIsPresent("Check out", "id", "header_cart", Constants.TIME_OUT);
                BtnCount.Click();
                ExReports.reportPass("'Check out' is clicked");

                WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(Constants.TIME_OUT));
                wait.Until(ExpectedConditions.TextToBePresentInElement(Count, getCount));
                ExReports.reportPass("1 item is on the card");

                //Common.waitForElementIsPresent("Continue button", "classname", "step2", Constants.TIME_OUT);
                Common.waitForElementIsPresent("Continue button", "xpath", "//span[contains(.,'Continue')]", Constants.TIME_OUT);
                BtnContinue.Click();
                ExReports.reportPass("'Continue' button is clicked");
            }
            catch (Exception e)
            {
                ExReports.reportFail("Check out item" + e.Message);
                throw;
            }
        }
Ejemplo n.º 2
0
 private void ClickButtonContinue()
 {
     BtnContinue.Click();
 }