public StudentCreatePage(Session session) : base(session)
        {
            var inputs = FindElements(By.XPath("//form//div"));

            LastName       = new ValidatedTextField <StudentCreatePage>(this, inputs[0]);
            FirstName      = new ValidatedTextField <StudentCreatePage>(this, inputs[1]);
            EnrollmentDate = new ValidatedDateField <StudentCreatePage>(this, inputs[2]);
        }
Beispiel #2
0
        public StudentCreatePage(Session session) : base(session)
        {
            var xpath = By.XPath("//form//div");

            LastName       = new ValidatedTextField <StudentCreatePage>(this, By.Ordinal(xpath, 0));
            FirstName      = new ValidatedTextField <StudentCreatePage>(this, By.Ordinal(xpath, 1));
            EnrollmentDate = new ValidatedDateField <StudentCreatePage>(this, By.Ordinal(xpath, 2));
        }
        public InstructorEditPage(Session session) : base(session)
        {
            var inputs = FindElements(By.XPath("//form//div"));

            LastName  = new ValidatedTextField <InstructorEditPage>(this, inputs[0]);
            FirstName = new ValidatedTextField <InstructorEditPage>(this, inputs[1]);
            HireDate  = new ValidatedDateField <InstructorEditPage>(this, inputs[2]);
            Office    = new TextField <InstructorCreatePage>(this, inputs[3].FindElement(By.TagName("input")));
        }
        public DepartmentCreatePage(Session session) : base(session)
        {
            var inputs = FindElements(By.XPath("//form//div"));

            Name       = new TextField <DepartmentCreatePage>(this, inputs[0].FindElement(By.TagName("input")));
            Budget     = new ValidatedTextField <DepartmentCreatePage>(this, inputs[1]);
            StartDate  = new ValidatedDateField <DepartmentCreatePage>(this, inputs[2]);
            Instructor = new SelectBox <DepartmentCreatePage>(this, inputs[3].FindElement(By.TagName("select")));
        }