コード例 #1
0
        public void ExecuteTest()
        {
            ExcelLib.PopulateInCollection(@"C:\Users\Tanathoz\Music\Book1.xlsx");


            LoginPageObject objLogin  = new LoginPageObject();
            EAPageObject    objEApage = objLogin.Login(ExcelLib.ReadData(1, "UserName"), ExcelLib.ReadData(1, "Password"));

            objEApage.FillUserForm(ExcelLib.ReadData(1, "Initial"), ExcelLib.ReadData(1, "MiddleName"), ExcelLib.ReadData(1, "FirstName"));



            /* SeleniumSetMethods.SelectDropDown("TitleId", "Mr.", PropiertyType.Id);
             *
             * SeleniumSetMethods.EnterText("Initial", "execute Automation", PropiertyType.Name);
             * //perform ops
             * SeleniumSetMethods.Click( "Save", PropiertyType.Name);
             * Console.WriteLine("The value from my title is :"+ SeleniumGetMethods.GetTextFromDDL("TitleId",PropiertyType.Id));
             * Console.WriteLine("The value from my text box  is :" + SeleniumGetMethods.GetText("Initial", PropiertyType.Name));
             *
             * Console.WriteLine("execute Test");*/
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: Leritest/SeleniumPractice
        public void ExecuteTets()
        {
            ExcelLib.PopulateInCollection(@"C:\Users\Bojan.Milovanovic\Desktop\Data.xlsx");

            // Login to Application - initialization of page object
            LoginPageObject pageLogin = new LoginPageObject();
            EAPageObject    pageEA    = pageLogin.Login(ExcelLib.ReadData(1, "UserName"), ExcelLib.ReadData(1, "Password"));

            //Fill User Details
            pageEA.FillUserForm(ExcelLib.ReadData(1, "Initial"), ExcelLib.ReadData(1, "MiddleName"), ExcelLib.ReadData(1, "FirstName"));

            // pageEA.FillUserForm("B", "M", "Bojan");


            //// Title
            //SeleniumSetMethods.SelectDropDown("TitleId", "Mr.", PropertyType.Id);
            //// Initial
            //SeleniumSetMethods.EnterText("Initial", "execute", PropertyType.Name);
            //Console.WriteLine("The value from my Title is: " + SeleniumGetMethods.GetText("TitleId", PropertyType.Id));
            //Console.WriteLine("The value from my Initial is: " + SeleniumGetMethods.GetText("Initial", PropertyType.Name));
            //// Click
            //SeleniumSetMethods.Click("Save", PropertyType.Name);
            //// First Name
            //SeleniumSetMethods.EnterText("FirstName", "execute", PropertyType.Name);
        }
コード例 #3
0
        public void ExecuteTets()
        {
            Console.WriteLine();
            ExcelLib.PopulateInCollection(@"C:\Users\Bojan.Milovanovic\Desktop\Data2.xlsx");

            // Login to Application - initialization of page object
            LoginPageObject pageLogin = new LoginPageObject();
            AgentObject     pageEA    = pageLogin.Login(ExcelLib.ReadData(1, "UserName"), ExcelLib.ReadData(1, "Password"));

            PropertiesCollection.driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10);
            //  Assert.AreEqual("//*[@id='nav - create - player']", PropertiesCollection.driver.FindElement(By.XPath("//*[@id='nav - create - player']")));
            // [FindsBy(How = How.Id, Using = "nav-create-player")]
        }