コード例 #1
0
        public void StartWork()
        {
            bool flag = true;

            while (flag)
            {
                if (System.DateTime.Now.Hour == 8 && System.DateTime.Now.Minute == 17)
                {
                    LoginField = driver.FindElement(By.Id("username"));
                    LoginField.Click();
                    System.Threading.Thread.Sleep(541);
                    LoginField.SendKeys("fpm.lihovec");
                    System.Threading.Thread.Sleep(432);
                    PassField = driver.FindElement(By.Id("password"));
                    PassField.Click();
                    PassField.SendKeys("1823402");
                    System.Threading.Thread.Sleep(734);
                    SearchInput = driver.FindElement(By.Id("loginbtn"));
                    SearchInput.Click();
                    System.Threading.Thread.Sleep(1231);
                    flag = false;
                }
            }
        }