コード例 #1
0
ファイル: Program.cs プロジェクト: Mlpichardo1/SeleniumFirst
        public void ExecuteTest()
        {
            // Login to Applciation
            LoginPageObject pageLogin = new LoginPageObject();
            EAPageObject    pageEA    = pageLogin.Login("execute", "automation");

            pageEA.FillUserForm("MP", "Manny", "Automation");

            // Initialize the Page by calling its Reference
            EAPageObject page = new EAPageObject();

            page.txtInitial.SendKeys("executeautomation");

            page.btnSave.Click();



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

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

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

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

            // //Click
            // SeleniumSetMethods.Click("Save", PropertyType.Name);
        }
コード例 #2
0
        public void ExecuteTest()
        {
            ExcelLib.PopulateInCollection(@"C:\Surekha\Data.xlsx");

            //Login to the 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"));

            Console.WriteLine("Executed Test");

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

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

            ////Click
            //SeleniumSetMethods.Click("Save", PropertyType.Name);

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

            //Console.WriteLine("The value from Initial is: " + SeleniumGetMethods.GetText("Initial", PropertyType.Name));
        }
コード例 #3
0
ファイル: Program.cs プロジェクト: Neous1/SeleniumAutomation
        [Test] // needed to run the test
        public void ExecuteTest()
        {
            //open spreadsheet for test data
            ExcelLib.PopulateInCollection(@"C:\Users\yvon\dev\SeleniumAutomation\Data.xlsx");
            //Login to Application and instantiate EAPageObject
            LoginPageObject pageLogin = new LoginPageObject();
            //EAPageObjects pageEA =  pageLogin.Login("Yvon", "EA9817");
            EAPageObjects 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","Ms.", How.Id);

            ////Initial
            //SeleniumSetMethods.EnterText("Initial","EJN" ,How.Name);

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

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

            ////Click
            //SeleniumSetMethods.Click("Save", How.Name);
        }
コード例 #4
0
        public void ExecuteTest()
        {
            //Login to application
            LoginPageObject pageLogin = new LoginPageObject();
            EAPageObject    pageEA    = pageLogin.Login("Mateusz", "Zarczynski");

            pageEA.FillUserForm("M.Ż", "Mateusz", "Żarczyński");

            // initialize the page by calling its reference

            //EAPageObject page = new EAPageObject();

            //page.txtInitial.SendKeys("Mateusz.Ż");
            //Console.WriteLine("Wprowadzan Inicjał");
            //page.btnSave.Click();
            //Console.WriteLine("Kilkam Save");



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

            //// Initial
            //SeleniumSetMethods.EnterText("Initial", "M.Ż", 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);
        }
コード例 #5
0
ファイル: Program.cs プロジェクト: levan3/SeleniumFirst
        public void ExecuteTest()
        {
            ExcelLib.PopulateInCollection(@"/Users/vanle/Desktop/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"));


            //Initialized the page by calling references
            //EAPageObject page = new EAPageObject();

            //page.txtInitial.SendKeys("executeautomation");
            //page.btnSave.Click();



            ////Title
            //SeleniumSetMethods.SelectDropDown("TitleId", "Mr.", PropertyType.Id);
            ////Initials
            //SeleniumSetMethods.EnterText("Initial","executeautomation",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);
        }
コード例 #6
0
ファイル: Program.cs プロジェクト: Bipinosti/SeleniumFirst
        public void ExecuteTest()
        {
            ExcelLib.PopulateInCollection(@"E:\Data.xlsx");

            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"));



            ////Login
            //LoginPageObject pageLogin = new LoginPageObject();
            //EAPageObject pageEA = pageLogin.Login("Bipin", "Osti");
            //pageEA.FillUserForm("Hello", "Bipin", "Osti");



            ////dropdown
            //SeleniumSetMethod.SelectDropdown("TitleId", "Mr.", PropertyType.Id);
            ////Initial name
            //SeleniumSetMethod.EnterText("Initial", "Hello", PropertyType.Name);

            //Console.WriteLine("The value i entered is : " + SeleniumGetMethod.GetTextFromDDL ( "TitleId", PropertyType.Id));
            //Console.WriteLine("The value i entered for initial is : " + SeleniumGetMethod.GetText( "Initial", PropertyType.Name));

            ////click operation
            //SeleniumSetMethod.Click("Save", PropertyType.Name);
            //SeleniumSetMethod.Click("Hindi", PropertyType.Name);
        }
コード例 #7
0
        public void ExecuteTest()
        {
            ExcelLib.PopulateInCollection(@"U:\Data.xlsx");

            //Login to App

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

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

            //page.txtInitial.SendKeys("executeautomation");

            //page.btnSave.Click();

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

            //SeleniumSetMethods.EnterText("Initial", "executeautomation", 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));

            //SeleniumSetMethods.Click("Save", PropertyType.Name);
        }
コード例 #8
0
        public void execTest()
        {
            ExcelLib.PopulateInCollection(@"C:\Users\Hoon\Documents\Hoon\Selenium\data.xlsx");

            //Login to application
            LoginPageObject pageLogin = new LoginPageObject();

            int iRow = 2;

            EAPageObject pageEA = pageLogin.Login(ExcelLib.ReadData(iRow, "UserName"), ExcelLib.ReadData(iRow, "Password"));

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


            //// Initialize the pabe by calling its reference
            //EAPageObject page = new EAPageObject();

            //page.txtInitial.SendKeys("test automation");

            //page.btnSave.Click();

            Console.WriteLine("execTest");
            LogWriter.LogWrt("execTest");
        }
コード例 #9
0
        public void ExecuteTest()
        {
            //Create a instance of LoginPageObject
            LoginPageObject pageLogin = new LoginPageObject();
            //Login to Application and return a  EAPageObject
            EAPageObject pageEA = pageLogin.Login("execute", "automation");

            //Fill User Details
            pageEA.FillUserForm("JP", "Juan Pablo", "Abad");


            /*
             * Second way
             * //Initialize the page by calling its reference
             *
             * EAPageObject page = new EAPageObject();
             * page.InputFirstName.SendKeys("juanp");
             * page.btnSubmit.Click();
             */

            /*
             * Firstway
             * SeleniumSetMethods.EnterText("firstname", "juan", Propertytype.Name);
             * SeleniumSetMethods.EnterText("lastname", "abad", Propertytype.Name);
             * SeleniumSetMethods.SelectDropDown("continents", "Europe", Propertytype.Id);
             *
             * Console.WriteLine("The value from my name is: " + SeleniumGetMethods.GetText("firstname", Propertytype.Name));
             * Console.WriteLine("The value from my last name is: " + SeleniumGetMethods.GetText("lastname", Propertytype.Name));
             * Console.WriteLine("The value from the continent is: " + SeleniumGetMethods.GetTextFromDDL("continents", Propertytype.Id));
             *
             * SeleniumSetMethods.Click("submit", Propertytype.Id);
             */
        }
コード例 #10
0
ファイル: Program.cs プロジェクト: ribex/SeleniumAutomation
        public void ExecuteTest()
        {
            // Login to application
            LoginPageObject pageLogin = new LoginPageObject();
            EAPageObject    pageEa    = pageLogin.Login("execute", "automation");

            pageEa.FillUserForm("W.", "Rebecca", "A.");

            //// Initialize the page by calling its reference
            //EAPageObject page = new EAPageObject();

            //page.InitialElement.SendKeys("W.");

            //page.FirstNameElement.SendKeys("Rebecca");

            //page.MiddleNameElement.SendKeys("A.");

            //page.ButtonSaveElement.Click();


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

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

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

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

            //// Click
            //SeleniumSetMethods.ClickElement(PropertyType.Name, "Save");
        }
コード例 #11
0
        public void ExecuteTest()
        {
            //    //select the title by calling the SelectDropDown method in SeleniumSetMethods class
            //    SeleniumSetMethods.SelectDropDown("TitleId", "Mr.", PropertyType.Id);
            //    Console.WriteLine("Executed Test");

            //    //select the Initial from the Text Box
            //    SeleniumSetMethods.EnterText("Initial", "executeautomation", PropertyType.Name);

            //    Console.WriteLine("The value from my Title is: " + SeleniumGetMethods.GetTextFromDropDownList("TitleId", PropertyType.Id));
            //    Console.WriteLine("The value from my Initial is: " + SeleniumGetMethods.GetText("Initial", PropertyType.Name));
            //    //click
            //    SeleniumSetMethods.Click("Save", PropertyType.Name);



            //login to application by creating an instance  for the LoginPageObject.
            LoginPageObject pageLogin = new LoginPageObject();
            EAPageObject    pageEA    = pageLogin.Login("Anuradha", "Sengalvarayan");

            pageEA.FillUserForm("SA", "Anu", "Senthil");
            Console.WriteLine("Executed LoginPage Object and returned EAPageObject");


            //pageEA.txtInitial.SendKeys("executeautomation");
            //pageEA.btnSave.Click();
        }
コード例 #12
0
        public void Operation()
        {
            //Login to Application

            LoginPageObject pageLogin = new LoginPageObject();
            EAPageObject    pageEA    = pageLogin.Login("Excute", "Auto");

            // EAPageObject pageEA = new EAPageObject();
            pageEA.FillUserform("hi", "Selenium", "automation");



            //Initialize the page by calling its reference
            EAPageObject page = new EAPageObject();

            page.txtInitial.SendKeys("Execute");

            page.btnSave.Click();



            ////IWebElement e = Propcollections.driver.FindElement(By.Name("q"));
            ////e.SendKeys("hi");

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

            //SeleniumSetMethods.Entertext("Initial", "Execute", PropertyType.Name);

            //Console.WriteLine("The value of title is " + SeleniumGetMethods.GetTextselect("TitleId", PropertyType.Id));

            //Console.WriteLine("Name " + SeleniumGetMethods.GetText("Initial", PropertyType.Name));

            //SeleniumSetMethods.Click("Save", PropertyType.Name);
        }
コード例 #13
0
        public void ExecuteTest()
        {
            ExelLib.PopulateInCollection(@"C:\Users\Marko\Desktop\Excel.xlsx");
            //Login to App
            LoginPageObject loginPage = new LoginPageObject();
            EAPageObject    pageEa    = loginPage.Login(ExelLib.ReadData(1, "UserName"), ExelLib.ReadData(1, "Password"));


            pageEa.FillUserForm(ExelLib.ReadData(1, "Initial"), ExelLib.ReadData(1, "MiddelName"), ExelLib.ReadData(1, "FisrtName"));

            //Inicialez the page by calling refernce

            //EAPageObject page = new EAPageObject();
            //page.txtInitial.SendKeys("executeautomation");
            //page.btnSave.Click();


            ////Titel
            //SeleniumSetMethod.SelectDropDown("TitleId", "Mr.", PropertyType.Id);
            ////Initcial
            //SeleniumSetMethod.EnterText("Initial", "executeautomation",PropertyType.Name);

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

            //Console.WriteLine("The value my Initial is: " + SeleniumGetMethod.GetText("Initial", PropertyType.Name));
            ////Click
            //SeleniumSetMethod.Click("Save", PropertyType.Name);
        }
コード例 #14
0
ファイル: Program.cs プロジェクト: arceliese/SeleniumFirst
 public void ExecuteTest()
 {
     //Login to Application
     LoginPageObject pageLogin = new LoginPageObject();
     EAPageObjects pageEA = pageLogin.Login("execute", "automation");
     pageEA.FillUserForm("T", "Torres", "Arcy");
   
 }
コード例 #15
0
        public void ExecuteTest()
        {
            //Login to app
            LoginPageObject pageLogin = new LoginPageObject();
            PageObject      page      = pageLogin.Login("execute", "automation");

            page.FillUserForm("T", "Michael", "Lantz");
        }
コード例 #16
0
        public void ExecuteTest()
        {
            ExcelLib.PopulateInCollection(@"F:\Projects\CDC\Tester\Data.xlsx");

            //Login to Application
            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"));
        }
コード例 #17
0
ファイル: Program.cs プロジェクト: Qianfinland/Net
        public void ExecuateTest()
        {
            //intialize the excel sheet
            ExcelLib.PopulateInCollection(@"C:\Users\Qian.Zhou\Documents\DataSelenium.xlsx");
            //login to application
            LoginPageObject pageLogin = new LoginPageObject();
            //EAPageObject pageEA= pageLogin.Login("bunny","guessmypassword");
            EAPageObject pageEA = pageLogin.Login(ExcelLib.ReadData(1, "UserName"), ExcelLib.ReadData(1, "Password"));

            //pageEA.TextInitial.SendKeys("Test page navigation");
            //pageEA.TextFirstName.SendKeys("Bunny");
            //pageEA.TextMiddleName.SendKeys("Smith");
            //pageEA.ButtonSave.Click();

            //call the user fill form operation from the EAPageObject
            //pageEA.UserFormFill("test", "Bunny", "Smith");
            pageEA.UserFormFill(ExcelLib.ReadData(1, "Initial"), ExcelLib.ReadData(1, "FirstName"), ExcelLib.ReadData(1, "MiddleName"));
        }
コード例 #18
0
ファイル: Program.cs プロジェクト: batlicka/SeleniumFirst
        public void ExecuteTest()
        {
            ExcelLib.PopulateInCollection(@"c:\Users\vagunda\Documents\testDataDrivenSelen.xlsx");

            //login to application
            LoginPageObject pageLogin = new LoginPageObject();

            //inputs bez excell file
            EAPageObject pageEA = pageLogin.Login("execute", "automation");

            pageEA.FillUserForm("KK", "Kartik", "Automation");

            //inputs from excel file
            //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"));

            //Initialize page
            //EAPageObject pageEA = new EAPageObject();
        }
コード例 #19
0
ファイル: Program.cs プロジェクト: BradStell/Selenium
        public void ExecuteTest()
        {
            // Login to application
            LoginPageObject pageLogin = new LoginPageObject();
            EAPageObject pageEA = pageLogin.Login("Execute", "automation");

            pageEA.FillUserForm("Initial", "FirstName", "MidleName");

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

            //// Initial text box
            //SeleniumSetMethods.EnterTextInTextBox("Initial", "executeautomation", 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 Save button
            //SeleniumSetMethods.Click("Save", PropertyType.Name);
        }
コード例 #20
0
        public void ExecuteTest()
        {
            //Login to Application

            LoginPageObject loginPageObject = new LoginPageObject();
            EAPageObject    eAPageObject    = loginPageObject.Login("execute", "automation");

            eAPageObject.FillUserForm("KK", "Karthik", "Automation");


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

            ////Initial
            //SeleniumSetMethods.EnterText("Initial", "executeautomation", 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);
        }
コード例 #21
0
ファイル: Program.cs プロジェクト: BradStell/Selenium
        public void ExecuteTest()
        {
            // Login to application
            LoginPageObject pageLogin = new LoginPageObject();
            EAPageObject    pageEA    = pageLogin.Login("Execute", "automation");

            pageEA.FillUserForm("Initial", "FirstName", "MidleName");



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

            //// Initial text box
            //SeleniumSetMethods.EnterTextInTextBox("Initial", "executeautomation", 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 Save button
            //SeleniumSetMethods.Click("Save", PropertyType.Name);
        }
コード例 #22
0
ファイル: Program.cs プロジェクト: lyanapol/selenium1
        public void ExecuteTest()
        {
            //Login to Application
            LoginPageObject pageLogin = new LoginPageObject();
            EAPageObject    pageEA    = pageLogin.Login("execute", "automation");

            Console.WriteLine("Successfully logged");

            pageEA.FillUserForm("KK", "Karthik", "Automation");
            Console.WriteLine("Entered initial, first and middle name");

            ////Initialize the page by calling its reference
            //EAPageObject page = new EAPageObject();

            //page.txtInitial.SendKeys("Opolska");

            //page.btnSave.Click();

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

            //    //Initial
            //    SeleniumSetMethods.EnterText("Initial", "Opolska", PropertyType.Name);
            //    Console.WriteLine("Entered Initial");

            //    //Select Radiobutton
            //    SeleniumSetMethods.Click("Female", PropertyType.Name);
            //    Console.WriteLine("Selected radio button");

            //    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);
            //    Console.WriteLine("Clicked Save");
        }
コード例 #23
0
ファイル: Program.cs プロジェクト: lyanapol/selenium1
        public void ExecuteTest()
        {
            //Login to Application
            LoginPageObject pageLogin = new LoginPageObject();
            EAPageObject pageEA= pageLogin.Login("execute", "automation");
            Console.WriteLine("Successfully logged");

            pageEA.FillUserForm("KK", "Karthik", "Automation");
            Console.WriteLine("Entered initial, first and middle name");

            ////Initialize the page by calling its reference
            //EAPageObject page = new EAPageObject();

            //page.txtInitial.SendKeys("Opolska");

            //page.btnSave.Click();

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

            //    //Initial
            //    SeleniumSetMethods.EnterText("Initial", "Opolska", PropertyType.Name);
            //    Console.WriteLine("Entered Initial");

            //    //Select Radiobutton
            //    SeleniumSetMethods.Click("Female", PropertyType.Name);
            //    Console.WriteLine("Selected radio button");

            //    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);
            //    Console.WriteLine("Clicked Save");
        }
コード例 #24
0
ファイル: Program.cs プロジェクト: Moises-Pena/Testing
        public void ExecuteTest()
        {
            //Login to application

            LoginPageObject pageLogin = new LoginPageObject();
            EAPageObjects   pageEA    = pageLogin.Login("Test", "Text");

            pageEA.FillUserForm("MA", "Jose", "Rafael");



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

            ////Initial
            //SeleniumSetMethods.EnterText("Initial", "TestText", 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);
        }