public void Execute() { var loginpage = new Login(driver); loginpage.LoginSuccess(); var homePage = new Home(driver); homePage.clickAdminstration(); homePage.clickTimenMaterials(); TimeMaterial timeMaterial = new TimeMaterial(driver); timeMaterial.clickCreateNew(); Thread.Sleep(2000); seleniumsetmethod.EnterText(driver, "Code", "111", "Id"); Console.WriteLine("the code is " + seleniumGetMethod.GetText(driver, "Code", "Id")); seleniumsetmethod.EnterText(driver, "Description", "testing", "Id"); Console.WriteLine("the description is " + seleniumGetMethod.GetText(driver, "Description", "Id")); seleniumsetmethod.Click(driver, "SaveButton", "Id"); }
public void WhenICreateNewTimeAndMaterialForm() { TimeMaterial timeMaterial = new TimeMaterial(driver); timeMaterial.clickCreateNew(); timeMaterial.CreateNewRecord("ck", "des1"); // timeMaterial.validateRecord(); }
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"); }