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 SaveExistingDesignNameFromPos() { try { test = extent.CreateTest("_6823_SaveDesignFromPos"); OpenBrowser(Browser.Chrome); Navigation.GoToURL("http://ii4.dev.brandmuscle.net/"); LoginPage.LoginToApplication("*****@*****.**", "go2web"); HomePage.VerifyHomePage(); MyProjectsPage.VerifyProjectsPage(); string designname = MyProjectsPage.GetExistingName(); MyProjectsPage.ClickOnPosOnDemand(); POS_On_Demand.SelectTemplate(); CreateDesignPage.VerifyPreviewChanges(); CreateDesignPage.ClickOnSave(); CreateDesignPage.GiveExistingName(designname); CreateDesignPage.ClickOnSaveInSaveDesignPopup(); CreateDesignPage.ClickOnYesInOverWritePopup(); CreateDesignPage.VerifyConfirmationMsg(); Driver.Quit(); } catch (Exception e) { Console.WriteLine(e); test.Fail("_6823_SaveDesignFromPos" + e); Assert.Fail(); } }