public void CreateAndValidate(string code, string testDesc) { // Creating an instance of home page var homePage = new Home(driver); homePage.clickAdminstration(); homePage.clickTimenMaterials(); TimeMaterial timeMaterial = new TimeMaterial(driver); timeMaterial.clickCreateNew(); timeMaterial.CreateNewRecord(code); //timeMaterial.EditNewRecord(); //timeMaterial.DeleteNewRecord(); timeMaterial.ValidateRecord(); }
public void CreateAndValidate(string code, string Description) { // Creating an instance of home page var homePage = new Home(driver); homePage.clickAdminstration(); homePage.clickTimenMaterials(); TimeMaterial timeMaterial = new TimeMaterial(driver); timeMaterial.clickCreateNew(); timeMaterial.CreateNewRecord(code, Description); //Thread.Sleep(3000); timeMaterial.validateRecord(); }