Пример #1
0
        [Test]//run the test case ----make method as a calleable
        public void ExtenstionMethodcl()
        {
            //RefactoringCustomSetMethod.EnterText("firstname", "prashant", Elementtype.Id);
            EAPageObject page = new EAPageObject();

            page.FillStudentFormUsing_ExtensionMethod("prashant");
        }
Пример #2
0
        [Test]//run the test case ----make method as a calleable
        public void PageObjectModel_RefactoringCustomeExecuteTest_PageObjectRefactoringCustomGetMethod()
        {
            //RefactoringCustomSetMethod.EnterText("firstname", "prashant", Elementtype.Id);
            EAPageObject page = new EAPageObject();

            page.FillStudentFormUsing_PageObjectRefactoringCustomSetMethod("prashant");
        }
Пример #3
0
        [Test]//run the test case ----make method as a calleable
        public void PageObjectModel_RefactoringCustomeExecuteTest()
        {
            //RefactoringCustomSetMethod.EnterText("firstname", "prashant", Elementtype.Id);
            EAPageObject page = new EAPageObject();

            page.txtfirstname.SendKeys("prashant");
            //RefactoringCustomSetMethod.Click("btn", Elementtype.ClassName);
            page.btnsubmit.Click();
        }
Пример #4
0
        [Test]//run the test case ----make method as a calleable
        public void ExtenstionMethodcl()
        {
            StudentPageObject studentPageObject = new StudentPageObject();
            //EAPageObject PageEA = studentPageObject.CreateStudent("prashant", "pimpalkar", "01/01/2012");
            EAPageObject PageEA = studentPageObject.CreateStudentUsing_ExtensionMethod("prashant", "pimpalkar", "01/01/2012");

            ///EAPageObject PageEA = new EAPageObject();
            PageEA.FillStudentFormUsing_ExtensionMethod("sw");
        }
Пример #5
0
        [Test]//run the test case ----make method as a calleable
        public void PageObjectModel_RefactoringCustomeExecuteTest_PageObjectRefactoringCustomGetMethod()
        {
            StudentPageObject studentPageObject = new StudentPageObject();
            //EAPageObject PageEA = studentPageObject.CreateStudent("prashant", "pimpalkar", "01/01/2012");
            EAPageObject PageEA = studentPageObject.CreateStudent_PageObjectRefactoringCustomSetMethod("prashant", "pimpalkar", "01/01/2012");

            ///EAPageObject PageEA = new EAPageObject();
            PageEA.FillStudentFormUsing_PageObjectRefactoringCustomSetMethod("sw");
        }
Пример #6
0
        [Test]//run the test case ----make method as a calleable
        public void PageObjectModel_RefactoringCustomeExecuteTest()
        {
            StudentPageObject studentPageObject = new StudentPageObject();

            //EAPageObject PageEA = studentPageObject.CreateStudent("prashant", "pimpalkar", "01/01/2012");
            studentPageObject.CreateStudent("prashant", "pimpalkar", "01/01/2012");

            EAPageObject PageEA = new EAPageObject();

            // PageEA.txtfirstname.SendKeys("prashant");
            PageEA.FillStudentForm("sw");
        }