public void GivenNavigateToPackages()
 {
     basic.LoginFlow(driver);
     mainMenuPageObject.ClickPricingManagementHeader();
     priceManagmentDropDownPageObject.ClickPackages();
     packagesScreenPageObject.CheckPackagesLoaded();
 }
예제 #2
0
 public void ThenNavigateToAgreementsPage()
 {
     basic.LoginFlow(driver);
     mainMenuPageObject.ClickPricingManagementHeader();
     priceManagmentDropDownPageObject.ClickAgreements();
     agreementsScreenPageObject.WaitUntillLoaded();
 }
        public void GivenOpenUpThePackageScreen()
        {
            calculatedValueBeforeAddingCriteria = sqlInit.SqlConnector("SELECT * FROM [eBate-Test].[dbo].[RebateTransaction] where Id = 2927");
            driver.Manage().Window.Maximize();
            driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10);
            driver.Navigate().GoToUrl("https://app.test.e-bate.net/login");
            basic.LoginFlow(driver);
            mainMenuPageObject.ClickPricingManagementHeader();
            priceManagmentDropDownPageObject.ClickPackages();
            packagesScreenPageObject.CheckPackagesLoaded();
            packagesScreenPageObject.ClickSearchInput();
            Actions action = new Actions(driver);

            action.SendKeys("1592576148").Perform();
            Thread.Sleep(2000);
            packagesScreenPageObject.SelectFirstRow();
            packagesScreenPageObject.ClickActionViewButton();
        }
 public void ThenINavigateToTheTestAgreement()
 {
     basic.LoginFlow(driver);
     mainMenuPageObject.ClickPricingManagementHeader();
     priceManagmentDropDownPageObject.ClickAgreements();
     agreementsScreenPageObject.WaitUntillLoaded();
     agreementsScreenPageObject.FindSeleniumAgreementWithRebates();
     agreementsScreenPageObject.SelectFirstRow();
     agreementsScreenPageObject.ClickActionViewButton();
 }
 public void WhenINavigateToPricingManagementPackages()
 {
     basic.LoginFlow(driver);
     mainMenuPageObject.ClickPricingManagementHeader();
     priceManagmentDropDownPageObject.ClickPackages();
     packagesScreenPageObject.WaitUntillLoaded();
     packagesScreenPageObject.ClickSearchInput();
     actions.SendKeys("owasp test").Perform();
     packagesScreenPageObject.CheckPackagesLoaded();
     Thread.Sleep(1500);
 }
 public void GivenChooseAnAgreementToLookAt()
 {
     Basic basic = new Basic();
     basic.LoginFlow(driver);
     MainMenuPageObject mainMenuPageObject = new MainMenuPageObject(driver);
     mainMenuPageObject.ClickPricingManagementHeader();
     PriceManagmentDropDownPageObject priceManagmentDropDownPageObject = new PriceManagmentDropDownPageObject(driver);
     priceManagmentDropDownPageObject.ClickAgreements();
     AgreementsScreenPageObject agreementsScreenPageObject = new AgreementsScreenPageObject(driver);
     agreementsScreenPageObject.SelectFirstRow();
 }
예제 #7
0
        public void GivenNavigateToPricingManagementPackages()
        {
            Basic basic = new Basic();

            basic.LoginFlow(driver);
            MainMenuPageObject mainMenuPageObject = new MainMenuPageObject(driver);

            mainMenuPageObject.ClickPricingManagementHeader();
            PriceManagmentDropDownPageObject priceManagmentDropDownPageObject = new PriceManagmentDropDownPageObject(driver);

            priceManagmentDropDownPageObject.ClickPackages();
        }
예제 #8
0
 public void GivenOpenPackage()
 {
     basic.LoginFlow(driver);
     mainMenuPageObject.ClickPricingManagementHeader();
     priceManagmentDropDownPageObject.ClickPackages();
     packagesScreenPageObject.WaitUntillLoaded();
     packagesScreenPageObject.ClickSearchInput();
     action.SendKeys("owasp test AND 1=1").Perform();
     Thread.Sleep(1500);
     packagesScreenPageObject.SelectFirstRow();
     packagesScreenPageObject.ClickActionViewButton();
     Thread.Sleep(1500);
     if (packageEditorScreenPageObject.IfCriteriaPopupAppeared())
     {
         packageEditorScreenPageObject.ClickNoButtonAddCriteria();
     }
     else
     {
         Thread.Sleep(100);
     }
     packageEditorScreenPageObject.ClickTabsAgreements();
     Thread.Sleep(100);
     packageEditorScreenPageObject.ClickTabsAgreementsAddNewBtn();
 }
예제 #9
0
 public void GivenNavigateToPricingManagementAgreements_()
 {
     basic.LoginFlow(driver);
     mainMenuPageObject.ClickPricingManagementHeader();
     priceManagmentDropDownPageObject.ClickAgreements();
 }