public void PredictiveSearch() { var backOfficeLogin = new AuthPage(driver); var import = new CatalogPage(driver); driver.Url = string.Concat(Url.Backoffice, "solr/index"); backOfficeLogin.BackOfficeLogin(); import.SearchImport(); }
public void AddRole() { var login = new AuthPage(driver); var role = new RolePage(driver); driver.Url = string.Concat(Url.Deautos.Views.Backoffice.Main, "roleAssociation"); login.BackOfficeLogin(); IsTrue(role.AddRole()); }
public void CreateDiscountCoupon() { var login = new AuthPage(driver); var discount = new DiscountPage(driver); driver.Url = string.Concat(Url.Deautos.Views.Backoffice.Main, "discount"); login.BackOfficeLogin(); discount.CreateDiscountCoupon(); }
public void CreateStrategicAutoPublicationModel() { var login = new AuthPage(driver); var strategicAutoPublication = new StrategicAutoPublicationPage(driver); driver.Url = string.Concat(Url.Deautos.Views.Backoffice.Main, "strategicAutoPublication"); login.BackOfficeLogin(); IsTrue(strategicAutoPublication.CreateStrategicAutoPublication(SponsoringType.Model)); }
public void LoginAsAgencyUser() { var login = new AuthPage(driver); var loginAs = new LoginAsPage(driver); driver.Url = string.Concat(Url.Deautos.Views.Backoffice.Main, "loginAsCms"); login.BackOfficeLogin(); loginAs.LoginAsUser(FormData.MultibrandUser); }
public void NavigationCheck() { var login = new AuthPage(driver); var index = new BackOfficeIndexPage(driver); driver.Url = Url.Deautos.Views.Backoffice.Main; login.BackOfficeLogin(); IsTrue(index.NavigationCheck()); }
public void DeleteDefaultAutoPublication() { var login = new AuthPage(driver); var defaultAutoPublication = new DefaultAutoPublicationPage(driver); driver.Url = string.Concat(Url.Deautos.Views.Backoffice.Main, "defaultAutoPublication"); login.BackOfficeLogin(); IsTrue(defaultAutoPublication.DeleteDefaultAutoPublication()); }
public void DeleteBlackListUser() { var login = new AuthPage(driver); var blackList = new BlackListPage(driver); driver.Url = string.Concat(Url.Deautos.Views.Backoffice.Main, "blackListMails"); login.BackOfficeLogin(); IsTrue(blackList.DeleteBlackListUser()); }
public void CreateAndDeleteBackOfficeUser() { var login = new AuthPage(driver); var user = new BackOfficeUserPage(driver); driver.Url = string.Concat(Url.Deautos.Views.Backoffice.Main, "secUser"); login.BackOfficeLogin(); IsTrue(user.CreateBackOfficeUser()); IsTrue(user.DeleteBackOfficeUser()); }
public void CreateEditRemoveCampaign() { var login = new AuthPage(driver); var campaign = new CampaignPage(driver); driver.Url = string.Concat(Url.Deautos.Views.Backoffice.Main, "campaign"); login.BackOfficeLogin(); IsTrue(campaign.CreateCampaign()); IsTrue(campaign.EditCampaign()); IsTrue(campaign.DeleteCampaign()); }
public void DisableAndCreateSubscription() { var login = new AuthPage(driver); driver.Url = Url.Deautos.Views.Backoffice.Main; var agencyUser = new AgencyUserPage(driver); login.BackOfficeLogin(); agencyUser.DisableSubscription(SubscriptionUser); agencyUser.CreateSubscription(SubscriptionUser); }
public void CreateEditRemoveListingSponsor() { var login = new AuthPage(driver); var sponsor = new ListingSponsorPage(driver); driver.Url = string.Concat(Url.Deautos.Views.Backoffice.Main, "listingSponsor"); login.BackOfficeLogin(); IsTrue(sponsor.CreateListingSponsor(SponsoringType.Brand)); IsTrue(sponsor.EditListingSponsor()); IsTrue(sponsor.DeleteListingSponsor()); }
public void CreateEditRemovePrelistingSponsor() { var login = new AuthPage(driver); var prelisting = new PrelistingSponsorPage(driver); driver.Url = string.Concat(Url.Deautos.Views.Backoffice.Main, "prelisting"); login.BackOfficeLogin(); IsTrue(prelisting.CreatePrelistingSponsor()); IsTrue(prelisting.EditPrelistingSponsor()); IsTrue(prelisting.DeletePrelistingSponsor()); }
public void MultibrandUserRegister() { var auth = new AuthPage(driver); var agencyUser = new AgencyUserPage(driver); driver.Url = Url.Deautos.Views.Registers.RegisterUserTypeTwo; string email = auth.RegisterClientUser("Multibrand"); driver.Navigate().GoToUrl(string.Concat(Url.Deautos.Views.Backoffice.Main, "agencyUserCms")); auth.BackOfficeLogin(); agencyUser.ActivateAgencyUser(email); }
public void HeaderSearchHome() { var login = new AuthPage(driver); var import = new CatalogPage(driver); var home = new HeaderPage(driver); driver.Url = Url.Deautos.Views.Backoffice.Main; login.BackOfficeLogin(); driver.Navigate().GoToUrl(string.Concat(Url.Deautos.Views.Backoffice.Main, "solr/index")); import.SearchImport(); driver.Navigate().GoToUrl(Url.Deautos.Views.Home.Main); home.HeaderSearch(new ListingSearchStrategy(), "Fiat"); AreEqual("Fiat", driver.FindElement(By.XPath("//div[@id='mainContent']/div/div/div/div[3]/div/div/div/div[2]/div[2]/a/span")).Text); }