public void SaveNewDeisgnFromEdit() { try { test = extent.CreateTest("_6822_SaveNewDesignName"); OpenBrowser(Browser.Chrome); Navigation.GoToURL("http://ii4.dev.brandmuscle.net/"); LoginPage.LoginToApplication("*****@*****.**", "go2web"); HomePage.VerifyHomePage(); MyProjectsPage.VerifyProjectsPage(); MyProjectsPage.ClickOnEdit(); CreateDesignPage.VerifyCreateDesignPage(); CreateDesignPage.VerifyPreviewChanges(); CreateDesignPage.ClickOnSave(); CreateDesignPage.ClickOnSaveInSaveDesignPopup(); CreateDesignPage.ClickOnNoInOverWritePopup(); CreateDesignPage.ClearTextInSaveDesignPopup(); CreateDesignPage.SaveDesignWithNewName("template"); Driver.Quit(); } catch (Exception e) { test.Fail("_6822_SaveNewDesignName" + e); Assert.Fail(); } }
public void VerifyPromptToSaveDesign() { try { test = extent.CreateTest("_6824_Prompt_SaveDesign"); OpenBrowser(Browser.Chrome); Navigation.GoToURL("http://ii4.dev.brandmuscle.net/"); LoginPage.LoginToApplication("*****@*****.**", "go2web"); HomePage.VerifyHomePage(); MyProjectsPage.VerifyProjectsPage(); MyProjectsPage.ClickOnEdit(); CreateDesignPage.VerifyCreateDesignPage(); CreateDesignPage.VerifyPreviewChanges(); CreateDesignPage.ClickOnNextStep(); CreateDesignPage.ClickOnYes(); CreateDesignPage.ClearTextInSaveDesignPopup(); CreateDesignPage.SaveDesignWithNewName("template1"); SelectProductDetailsPage.VerifySelectProductDetailsPage(); Driver.Quit(); } catch (Exception e) { test.Fail("_6824_Prompt_SaveDesign" + e); } }