Exemplo n.º 1
0
 public void DomainRegistration(IWebDriver driver, String sectionUrl, String domainname)
 {
     driver.Navigate().GoToUrl(sectionUrl);
     DomainRegisterUI_SearchTxt.SendKeys(domainname);
     DomainRegisterUI_SearchBtn.Click();
     driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromMinutes(1.00));
     DomainRegisterUI_AddToCartBtn.Click();
     Thread.Sleep(8000);
     _cart.CartUI_ViewCartBtn.Click();
     Thread.Sleep(6000);
     _cart.CartUI_ConfirmOrderBtn.Click();
     Thread.Sleep(6000);
 }
Exemplo n.º 2
0
        public void RegisterPremiumDomain(IWebDriver driver, String sectionUrl, String domainname)
        {
            driver.Navigate().GoToUrl(sectionUrl);
            DomainRegisterUI_SearchTxt.SendKeys(domainname);
            DomainRegisterUI_SearchBtn.Click();

            Thread.Sleep(25000);
            int count = driver.FindElements(By.XPath(UiConstants.PREMIUMDOMAINDIV)).Count;

            if (!count.Equals(0))
            {
                PremiumDomainUI_AddToCartBtn.Click();
                Thread.Sleep(10000);
                _cart.CartUI_ViewCartBtn.Click();
                Assert.IsTrue(PremiumDomainUI_PremiumTxt.Text.Contains("PREMIUM"));
                _cart.CartUI_ConfirmOrderBtn.Click();
            }
            else
            {
                throw new Exception("USER EXCEPTION : UNABLE TO FIND PREMIUM DOMAINS FOR : " + domainname);
            }

            CommonUtils.ExecEnvBasedPaymentFlow(driver, _cart);
        }