public void TransferResv()
        {
            //IsropaLogin.Login();
            //SelectClerkMenuFromMainPage.SelectClerkMenu();

            ////wait until the left menu dispalyed
            //GenericHelper.WaitForElementAndGetIt(ObjectRepository.Driver, By.XPath("//table[@id='ctl00_cntClerkMenu1_pnlLeftMenu']//span[text()='TCO Package ']")).Click();

            ////wait until the Components is displayed
            //GenericHelper.WaitForElementAndGetIt(ObjectRepository.Driver, By.XPath("//ul[@id='nested']/li[2]/h3")).Click();

            ////wait until the transfer option is displayed
            //GenericHelper.WaitForElementAndGetIt(ObjectRepository.Driver, By.XPath("//ul[@id='nested']/li[2]/descendant::div[5]")).Click();

            //Thread.Sleep(3000);


            //  Vavigate to the desired  site
            NavigationHelper.NavigateToUrl(ObjectRepository.Config.GetWebSite());

            //create an object if the PomLogin class
            PomLogin       TcoLogin   = new PomLogin(ObjectRepository.Driver);
            PomWelcomToTCO WelcomPage = TcoLogin.Login(ObjectRepository.Config.GetUserName(), ObjectRepository.Config.GetUserPassword());
            PomDocketList  clerk      = WelcomPage.ClickClerkMenu();

            Thread.Sleep(3000);
        }
Example #2
0
        public void PomLogin()
        {
            NavigationHelper.NavigateToUrl(ObjectRepository.Config.GetWebSite());
            PomLogin       TcoLogIn      = new PomLogin(ObjectRepository.Driver);
            PomWelcomToTCO TcoWelcomPage = TcoLogIn.Login(ObjectRepository.Config.GetUserName(), ObjectRepository.Config.GetUserPassword());
            PomDocketList  Clerk         = TcoWelcomPage.ClickClerkMenu();


            var DateInput = GenericHelper.GetElement(By.Id("ctl00_ContentPlaceHolder1_cldFromDate_txt_Date"));

            DateInput.Click();

            var PrevMonth = ObjectRepository.Driver.FindElement(By.XPath("//div[@id='CalendarDiv']/descendant::table[2]/descendant::td[1]"));

            Thread.Sleep(3000);
            PrevMonth.Click();
            Thread.Sleep(3000);
            var NextMonth = ObjectRepository.Driver.FindElement(By.XPath("//div[@id='CalendarDiv']/descendant::table[2]/descendant::td[3]"));

            NextMonth.Click();

            var DaysInCurrentMonth = ObjectRepository.Driver.FindElements(By.XPath("//div[@id='CalendarDiv']/descendant::table[3]"));

            Thread.Sleep(5000);
        }
        public void Calendar()
        {
            NavigationHelper.NavigateToUrl(ObjectRepository.Config.GetWebSite());
            PomLogin       TcoLogIn      = new PomLogin(ObjectRepository.Driver);
            PomWelcomToTCO TcoWelcomPage = TcoLogIn.Login(ObjectRepository.Config.GetUserName(), ObjectRepository.Config.GetUserPassword());
            PomDocketList  Clerk         = TcoWelcomPage.ClickClerkMenu();

            Clerk.ClickShowButton();

            Thread.Sleep(3000);
        }