コード例 #1
0
ファイル: ConfigTests.cs プロジェクト: koreyba/lottosend
        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();
            }
        }
コード例 #2
0
ファイル: CommonActions.cs プロジェクト: koreyba/lottosend
 /// <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();
 }