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