public void should_have_dataproviders_available() { var createPackagePage = new PackagesPageObjects(driver, common.CONN_STRING + "#/package-maintenance"); Assert.GreaterOrEqual(createPackagePage.GetAvailableDataProviders("provider in providers"), 1); }
public void should_set_title() { var createPackagePage = new PackagesPageObjects(driver, common.CONN_STRING + "#/package-maintenance"); Assert.AreEqual("Package Maintenance - Create", createPackagePage.FindByIdWithAttribute("title", "title")); }
public void should_set_states_options_for_package() { var createPackagePage = new PackagesPageObjects(driver, common.CONN_STRING + "#/package-maintenance"); createPackagePage.selectDropDownByNum(1); var options = createPackagePage.ngDriver.FindElements(By.TagName("option")); foreach (NgWebElement opt in options) { if (opt.Selected) { Assert.AreEqual("Expired", opt.Text); } } }
public void should_have_create_package_functionality() { var createPackagePage = new PackagesPageObjects(driver, common.CONN_STRING + "#/package-maintenance"); driver.Navigate().GoToUrl(common.CONN_STRING + "#/packages"); var countPackagesPre = createPackagePage.GetPackagesCount(); driver.Navigate().GoToUrl(common.CONN_STRING + "#/package-maintenance"); createPackagePage.CreatePackage("**ProtractorTestPackage"); Thread.Sleep(500); driver.Navigate().GoToUrl(common.CONN_STRING + "#/packages"); var countPackagesPost = createPackagePage.GetPackagesCount(); Assert.Less(countPackagesPre, countPackagesPost); }