public void ThenTheRecordShouldBeEditedSuccessfully() { TimeMaterial timeMaterial = new TimeMaterial(driver); timeMaterial.ValidateRecord("edit"); driver.Quit(); }
public void GivenICreateATimeAndMaterialWithBelow(string p0, string p1) { // Creating an instance of home page var homePage = new Home(driver); homePage.clickAdminstration(); homePage.clickTimenMaterials(); TimeMaterial timeMaterial = new TimeMaterial(driver); timeMaterial.clickCreateNew(); timeMaterial.CreateNewRecord(p0, p1); //timeMaterial.EditNewRecord(); //timeMaterial.DeleteNewRecord(); timeMaterial.ValidateRecord(p0); }
public void GivenICreateATimeAndMaterial() { // Creating an instance of home page var homePage = new Home(driver); homePage.clickAdminstration(); homePage.clickTimenMaterials(); TimeMaterial timeMaterial = new TimeMaterial(driver); timeMaterial.clickCreateNew(); timeMaterial.CreateNewRecord("test", "testDescription"); //timeMaterial.EditNewRecord(); //timeMaterial.DeleteNewRecord(); timeMaterial.ValidateRecord("test"); }