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);
        }
示例#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);
        }
示例#4
0
        public static void LoginFromExcelFile()
        {
            string FilePath = @"E:\Users\Bassam\Documents\Training\DataDriven\ExcelTestData\TcoData.xlsx";

            NavigateToUrl(ObjectRepository.Config.GetWebSite());
            DropDownListHelper.SelectElementByText(By.Id("cmbCompanies"), "Vered Hasharon");
            PomLogin TcoLogin = new PomLogin(ObjectRepository.Driver);

            TcoLogin.Login(ExcelReaderHelper.GetCelldata(FilePath, "Login", 1, 0).ToString(), ExcelReaderHelper.GetCelldata(FilePath, "Login", 1, 1).ToString());
            Thread.Sleep(2000);
        }
示例#5
0
        public void LoginWithExcel()
        {
            NavigationHelper.NavigateToUrl(ObjectRepository.Config.GetWebSite());
            DropDownListHelper.SelectElementByText(By.Id("cmbCompanies"), "New Isropa");
            PomLogin TcoLogin = new PomLogin(ObjectRepository.Driver);

            TcoLogin.Login(TestContext.DataRow["UserName"].ToString(), TestContext.DataRow["PassWord"].ToString());
            var LogOut = ObjectRepository.Driver.FindElement(By.Id("CleckControll1_btnLogOut"));

            Console.WriteLine("Test {0} . result :{1}", TestContext.TestName, TestContext.CurrentTestOutcome);
            LogOut.Click();
        }