Esempio 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);
 }
Esempio n. 2
0
        public void TransferDomain(IWebDriver driver, String sectionUrl, String domainname)
        {
            driver.Navigate().GoToUrl(sectionUrl);
            DomainTransferUI_InputTxt.SendKeys(domainname);
            DomainRegisterUI_SearchBtn.Click();
            Thread.Sleep(8000);
            DomainTransferUI_AddtoCartBtn.Click();
            Thread.Sleep(8000);
            _cart.CartUI_ViewCartBtn.Click();
            _cart.CartUI_ConfirmOrderBtn.Click();
            Thread.Sleep(8000);
            Assert.IsTrue(_cart.OrderUI_OrderReviewSectionTitle.Displayed);
            Thread.Sleep(8000);
            var orderSummary = _cart.OrderUI_OrderSummary.Text;

            Assert.IsTrue(orderSummary.Contains(domainname.ToLower()));
            Assert.IsTrue(orderSummary.Contains(UiConstants.DOMAIN_TRANSFER));
            Thread.Sleep(8000);

            /*  Checks for SANDBOX & LIVE Environments
             * Purchases and makes Payment if SandBox else navigates to Paypal and back  */
            CommonUtils.ExecEnvBasedPaymentFlow(driver, _cart);
        }
Esempio n. 3
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);
        }