public void EditExsitingBuliding() { BuildingPage buildingPage = GoToBuildingPage(); BuildingForm editBuildingForm = buildingPage.GoToEditBuilding(); BuildingPage buildingPageAfterEdit = editBuildingForm.EditBuildingData(name, randomInt, city, street); Assert.IsTrue(buildingPageAfterEdit.Table.IsDataExistsInTableRows(name, street, city, "Aktywny")); }
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)); }