Exemplo n.º 1
0
        public void ExecuteTest()
        {
            ExcelLib.PopulateInCollection(@"C:\Users\Nikki\Desktop\Niki Programming\SeleniumTest\Data.xlsx");


            //Login to application
            LoginPageObject pageLogin = new LoginPageObject();
            EAPageObject    pageEA    = pageLogin.Login(ExcelLib.ReadData(1, "UserName"), ExcelLib.ReadData(1, "Password"));

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


            ////Title
            //SeleniumSetMethods.SelectDropDown("TitleId", "Mr.", PropertyType.Id);

            ////Initial
            //SeleniumSetMethods.EnterText("Initial", "execute", PropertyType.Name);

            //Console.WriteLine("The value from my Title is: " + SeleniumGetMethods.GetTextFromDDL("TitleId", PropertyType.Id));

            //Console.WriteLine("The value from my Initial is: " + SeleniumGetMethods.GetText("Initial", PropertyType.Name));

            ////Click
            //SeleniumSetMethods.Click("Save", PropertyType.Name);
        }
Exemplo n.º 2
0
        public void ExecuteTest()
        {
            ExlLib.PopulateInCollection(@"C:\Users\visupadh\Desktop\Book1.xlsx");

            //Login to App

            LoginPageObject Pagelogin = new LoginPageObject();
            EAPageObject    pageEA    = Pagelogin.Login(ExlLib.ReadData(1, "UserName"), ExlLib.ReadData(1, "Password"));

            pageEA.FillUserForm(ExlLib.ReadData(1, "Initial"), ExlLib.ReadData(1, "MiddleName"), ExlLib.ReadData(1, "FirstName"));

            //pageEA.txtInitial.SendKeys("Hello vishwanath");
            //pageEA.btnSave.Click();
            ////Title
            //SeleniumSetMethods.SelectDropDown( "TitleId", "Mr.", PropertyType.Id);
            //SeleniumSetMethods.EnterText( "Initial", "Executeutomation", PropertyType.Id);
            //SeleniumSetMethods.Click( "Save", PropertyType.Name);
            //Console.WriteLine("Dropdown" + SeleniumGetMethods.GetTextFromDDL( "TitleId", PropertyType.Id));
            //Console.WriteLine("TextBox" + SeleniumGetMethods.GetText( "Initial", PropertyType.Name));
        }