Esempio n. 1
0
        public void AddSchoolsite()
        {
            Random rns                     = new Random();
            var    stsnum                  = rns.Next(100);
            var    siteshortname           = "ST01" + stsnum;
            Random rnl                     = new Random();
            var    stlnum                  = rnl.Next(100);
            var    sitelongname            = "ST01" + stlnum;
            MySchoolDetailsPage schoolPage = FacilitiesNavigation.NavigatetoMySchoolDetailPage();

            schoolPage.ExpandSchoolSitebldng();
            AddSchoolSitepopupPage sitepopup = schoolPage.ClickAddSchoolSitebldnglink();

            sitepopup.EnterSiteShortName(siteshortname);
            sitepopup.EnterSiteLongName(sitelongname);
            sitepopup.EnterContactName("Adair");
            sitepopup.EnterTelephoneNumber("9527725936");
            sitepopup.EnterMobileNumber("9527725936");
            sitepopup.EnterFaxNumber("5246");
            sitepopup.EnterEmailAddress("*****@*****.**");
            sitepopup.EnterWebsiteAddress("www.capita.co.uk");
            sitepopup.ClickOkButton();
            schoolPage.Save();
            Assert.IsTrue(schoolPage.HasConfirmedSave("My School Details Saved"));
        }
Esempio n. 2
0
        public void ValidationContactWebSiteAddress()
        {
            MySchoolDetailsPage schoolRoomPage = FacilitiesNavigation.NavigatetoMySchoolDetailPage();

            schoolRoomPage.ExpandSchoolSitebldng();
            AddSchoolSitepopupPage popup = schoolRoomPage.ClickAddSchoolSitebldnglink();

            popup.EnterSiteShortName("ST1");
            popup.EnterSiteLongName("North");
            popup.EnterWebsiteAddress("XXXXXXX");
            popup.ClickOkButton();
            var ValidationWarning = SeleniumHelper.Get(MySchoolDetailsElements.ValidationWarning);

            Assert.IsTrue(ValidationWarning.Displayed, "Validation Warning");
        }