private OfficePage GoToOfficePage() { LoginPage loginPage = new LoginPage(manager); HomePage homePage = loginPage.SetCorrectLoginData(login, password); BuildingPage buildingPage = homePage.GoTo <BuildingPage>(NavigationTo.NIERUCHOMOSCI); BuildingForm buildingForm = buildingPage.GoToEditBuilding(); OfficePage officePage = buildingForm.GoTo <OfficePage>(); return(new OfficePage(manager)); }
public void AddNewOffice() { OfficePage officePage = GoToOfficePage(); OfficeForm officeForm = officePage.GoTo <OfficeForm>(); officeForm.FillInTheOfficeForm(name, randomInt, randomArea); OfficePage officePageAfterAddNewOffice = officeForm.SubmitForm <OfficePage>(); Assert.IsTrue(officePageAfterAddNewOffice.Table.IsDataExistsInTableRows(name, ConvertInt(randomInt), ConvertInt(randomArea))); }
public void TestIniti() { this.TestInitialize(); this.settings = new SettingsGlobalOptionsPage(this.Driver); this.loginPage = new LoginPage(this.Driver); this.loginPage.CurrentUserLogin(BaseConstants.TestCRMUrl); this.office = new OfficePage(this.Driver); Thread.Sleep(1000); this.settings.NavigateToSettings(); this.settings.NavigateToOffices(); }