Exemplo n.º 1
0
        private string ClickSubmitCoupon()
        {
            string CouponCode;

            Logger.Info("ClickSubmitCoupon");

            CouponCode = WebDriverUtils.GetInputText(ACCouponCodeField);

            WebDriverUtils.WaitForElementToBeVisible(driver, ".//div[@class='modal-footer']/button[@id='#']");
            WebDriverUtils.WaitForElementToBeClickable(driver, SubmitButton);

            SubmitButton.Click();

            WebDriverUtils.WaitForInvisibilityOfElementLocated(driver, "//*[@id='ADD_COUPON']");

            return(CouponCode);
        }