Beispiel #1
0
        public void SearchEmployee()
        {
            string username = ObjectRepository.User;

            if (username == null)
            {
                //EmployeeSearch.SendKeys(ExcelOperation.GetData[1]);
                EmployeeNumber.SendKeys(DataBaseOperation.ReadData());
                driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(50);
            }
            else
            {
                EmployeeNumber.SendKeys(username);
                driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(5);
            }
        }
Beispiel #2
0
        public void CallCenterEnqrySearch(string searchOption)
        {
            try
            {
                switch (searchOption)
                {
                case "EmpNum":
                    EmployeeNumber.SendKeys(DataBaseOperation.GetSearchResults(searchOption));
                    break;

                case "EmpCode":
                    EmployerCode.SendKeys(DataBaseOperation.GetSearchResults(searchOption));
                    break;
                }
            }
            catch (Exception e)
            {
                throw new Exception(e.ToString());
            }
        }