Exemple #1
0
        public void AsknowLogin()
        {
            _act.waitForVisibilityOfElement(_asknowLoc.Asknowuname, 30);

            if (_act.isElementPresent(_asknowLoc.Asknowuname))
            {
                _act.EnterText(_asknowLoc.Asknowuname, "*****@*****.**", "Asknowuname");

                _act.EnterText(_asknowLoc.Asknowpwd, "Krishanarao@1221", "Asknowpwd");

                _act.click(_asknowLoc.Asknowloginbtn, "Asknowloginbtn");
            }
        }
        public void RequestLoanCalculatorAmount(int requestedAmount)
        {
            //select loan value from slider
            _act.waitForVisibilityOfElement(_LoanCalculatorDetailsLoc.AmountSlider, 20);
            IWebElement sliderEle = _driver.FindElement(_LoanCalculatorDetailsLoc.AmountSlider);

            _act.click(By.XPath("//div[@id='amount-slider']/span[@class='ui-slider-handle ui-state-default ui-corner-all']"), "click");
            if (requestedAmount < 1600)
            {
                int actualvalue = 1600 - requestedAmount;
                int leftclicks  = (actualvalue) / 25;
                for (int i = 1; i <= leftclicks; i++)
                {
                    sliderEle.SendKeys(Keys.ArrowLeft);
                }
            }
            else if (requestedAmount > 1600 && requestedAmount <= 2000)
            {
                int actualvalue = requestedAmount - 1600;
                int rightclicks = (actualvalue) / 25;
                for (int i = 1; i <= rightclicks; i++)
                {
                    sliderEle.SendKeys(Keys.ArrowRight);
                }
            }
            else if (requestedAmount > 2000)
            {
                int actualValue = 2000 - 1600;
                int rightClicks = (actualValue) / 25;
                for (int i = 1; i <= rightClicks; i++)
                {
                    sliderEle.SendKeys(Keys.ArrowRight);
                }
                string sliderValue = "2000";
                if (sliderValue == "2000")
                {
                    int value   = requestedAmount - 2000;
                    int rClicks = (value) / 50;
                    for (int i = 1; i <= rClicks; i++)
                    {
                        sliderEle.SendKeys(Keys.ArrowRight);
                    }
                }
            }
        }
Exemple #3
0
 public void ClickNextBtn()
 {
     _act.waitForVisibilityOfElement(_homescreen1Loc.NextBtn, 30);
     _act.click(_homescreen1Loc.NextBtn, "NextBtn");
 }
Exemple #4
0
 public void ClickEditDetails()
 {
     _act.waitForVisibilityOfElement(_personaldetailsLoc.EditDetails, 30);
     _act.click(_personaldetailsLoc.EditDetails, "EditDetails");
 }
Exemple #5
0
 public void ClickApplyBtn()
 {
     _act.waitForVisibilityOfElement(_homeDetailsLoc.linkMenuApply, 30);
     _act.click(_homeDetailsLoc.linkMenuApply, "ApplyLinkBtn");
 }