public void ReturnToOriginalSearchPage() { try { test = extent.CreateTest("_767__Return_To_Original_Search_Result"); OpenBrowser(Browser.Chrome); Navigation.GoToURL("http://ii4.dev.brandmuscle.net/"); LoginPage.LoginToApplication("*****@*****.**", "go2web"); HomePage.VerifyHomePage(); HomePage.ClickOnProjects(); MyProjectsPage.VerifyProjectsPage(); MyProjectsPage.ClickOnPosOnDemand(); POS_On_Demand.SelectTemplate(); CreateDesignPage.VerifyPreviewChanges(); CreateDesignPage.ClickOnNextStep(); CreateDesignPage.ClickOnNoFromNextStep(); SelectProductDetailsPage.VerifySelectProductDetailsPage(); SelectProductDetailsPage.ClickOnBack(); SelectProductDetailsPage.ClickYesFromBack(); POS_On_Demand.VerifyPosOnDemand(); } catch (Exception e) { test.Fail("Return To Original Search Page failed due to " + e); } }
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); } }
public void ClickOnNoFromNextStep() { try { test = extent.CreateTest("_6827_NegativeCasesNextStep"); 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.ClickOnNoFromNextStep(); SelectProductDetailsPage.VerifySelectProductDetailsPage(); Driver.Quit(); } catch (Exception e) { test.Fail("_6827_NegativeCasesNextStep" + e); } }