示例#1
0
 public OrderVerifications(IWebDriver newDriver)
 {
     _driver = newDriver;
     _driverCover = new DriverCover(_driver);
     Errors = new StringBuilder();
     _commonActions = new TestFramework.CommonActions(_driver);
 }
示例#2
0
        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();
            }
        }
示例#3
0
        static void Main(string[] args)
        {


            IWebDriver _driver = new ChromeDriver();
            DriverCover _driverCover = new DriverCover(_driver);
            TestFramework.CommonActions common = new TestFramework.CommonActions(_driver);
            common.SignIn_in_admin_panel();


            _driverCover.NavigateToUrl("http://stgadmin.lottobaba.com/admin/packages");
            PackagesPageObj package = new PackagesPageObj(_driver);
            package.EditPackage("SuperEnalotto (1-90)", 8);

            for (int i = 0; i < 71; ++i)
            {
                ChargePanelObj panel = new ChargePanelObj(_driver);
                ChargeFormObj form = panel.ChargeTheLastPayment();

                form.MakeTransactionFailed();
                form.UpdateTransaction();

            }
        }
 public void SetUp(ChromeOptions option)
 {
     MessageConsoleCreator message = new MessageConsoleCreator();
     message.TestWillRun();
     _driver = new ChromeDriver(option);
     _driverCover = new DriverCover(_driver);
     _orderVerifications = new OrderVerifications(_driver);
     _commonActions = new TestFramework.CommonActions(_driver);
     _cartVerifications = new CartVerifications(_driver);
 }
示例#5
0
 public void SetUp()
 {
     MessageConsoleCreator message = new MessageConsoleCreator();
     message.TestWillRun();
     _driver = new ChromeDriver(CreateOptions(_device));
     _driverCover = new DriverCover(_driver);
     _commonActions = new TestFramework.CommonActions(_driver);
     _cartVerifications = new CartVerifications(_driver);
     _sharedCode = new TestsSharedCode(_driver);
     _cartActions = new CartActions(_driver);
 }
示例#6
0
 public void SetUp(ChromeOptions option)
 {
     MessageConsoleCreator message = new MessageConsoleCreator();
     message.TestWillRun();
     _driver = new ChromeDriver(option);
     _driverCover = new DriverCover(_driver);
     _commonActions = new TestFramework.CommonActions(_driver);
     _sharedCode = new TestsSharedCode(_driver);
 }