Ejemplo n.º 1
0
        public TmCreatePage FillTheForm()
        {
            TypeCode.Click();
            Thread.Sleep(1000);
            for (int i = 1; i <= 2; i++)
            {
                if (Properties.driver.FindElement(By.XPath("//*[@id=\"TypeCode_listbox\"]/li[" + i + "]")).Text ==
                    Properties.seletectedText)
                {
                    Properties.driver.FindElement(By.XPath("//*[@id=\"TypeCode_listbox\"]/li[" + i + "]")).Click();
                }
            }

            Code.SendKeys(Properties.code);
            Description.SendKeys(Properties.description);
            Save.Click();
            return(new TmCreatePage());
        }