public void RunBeforeAnyTests() { IWebDriver driver = new ChromeDriver(); try { TestFramework.CommonActions actions = new TestFramework.CommonActions(driver); actions.SignIn_in_admin_panel(); DriverCover driverCover = new DriverCover(driver); driverCover.NavigateToUrl(driverCover.BaseAdminUrl + "admin/sites/1/edit"); SiteEditingPageObj siteEditing = new SiteEditingPageObj(driver); siteEditing.SwitchCombinedPageOff(); siteEditing.SwitchOneTimeEntryOn(); siteEditing.SwitchGroupGameOn(); siteEditing.SwitchSingleGameOn(); siteEditing.SwitchAddressOn(); siteEditing.SwitchNewSignUpOff(); siteEditing.SwitchNewPlayPageOff(); siteEditing.SwitchAddToCartOn(true); driver.Dispose(); } catch (Exception) { driver.Dispose(); } }
/// <summary> /// Switches on the combined payment page for a site /// </summary> public void SwitchOffCombinedPaymentPage() { SignIn_in_admin_panel(); _driverCover.NavigateToUrl(_driverCover.BaseAdminUrl + "admin/sites/1/edit"); SiteEditingPageObj siteEditing = new SiteEditingPageObj(_driver); siteEditing.SwitchCombinedPageOff(); }