//set PaymentDueDay
        void PaymentDueDay(string paymentDueDay)
        {
            var lists = DdlPaymentDueDay.FindElements(By.TagName("option"));

            foreach (var item in lists)
            {
                if (item.Text == paymentDueDay)
                {
                    item.Click();
                }
            }
        }
Example #2
0
        //set PaymentDueDay
        void PaymentDueDay(string paymentDueDay)
        {
            DdlPaymentDueDay.Click();
            var Lists = Driver.WaitForElementExist(By.XPath("//div[@class='menu transition visible']"), 3)
                        .FindElements(By.TagName("div"));

            foreach (var item in Lists)
            {
                if (item.Text == paymentDueDay)
                {
                    item.Click();
                }
            }
        }