public void ThenChooseAPackage() { packagesScreenPageObject.ClickSearchInput(); Actions action = new Actions(driver); action.SendKeys("1592576148").Perform(); Thread.Sleep(2000); }
public void WhenIPickAPackageToChangeAndClickTheEDITButton() { PackagesScreenPageObject packagesScreenPageObject = new PackagesScreenPageObject(driver); packagesScreenPageObject.ClickSearchInput(); Actions action = new Actions(driver); action.SendKeys("1592576148").Perform(); Thread.Sleep(1000); packagesScreenPageObject.SelectFirstRow(); }
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 GivenPickPackageWitchYouWantToDelete() { PackagesScreenPageObject packagesScreenPageObject = new PackagesScreenPageObject(driver); packagesScreenPageObject.ClickSearchInput(); Actions action = new Actions(driver); action.SendKeys("owasp test").Perform(); Thread.Sleep(2000); packagesScreenPageObject.ClickOrderById().ClickOrderById().SelectFirstRow(); }
public void ThenCheckIfPackageIsCreated() { Actions actions = new Actions(driver); var packagesScreen = new PackagesScreenPageObject(driver); packagesScreen.ClickSearchInput(); actions.SendKeys(description + Keys.Enter).Perform(); var actualResult = driver.FindElement(By.XPath("//*[@id=\"gridPackageOverview\"]/div/div[2]/kendo-grid/div/kendo-grid-list/div/div[1]/table/tbody/tr[1]/td[6]")).Text; Assert.IsNotNull(actualResult); driver.Close(); }
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 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(); }