private List <BreadcrumbSection> CreateSections(ControllerActionDescriptor descriptor, bool isFormView) { var sections = new List <BreadcrumbSection> { new BreadcrumbSection { DisplayName = "Home", ControllerName = "Home", ActionName = "Index" }, }; if (descriptor.ControllerName == "Home") { sections.Last().IsActive = true; return(sections); } var s = new BreadcrumbSection { DisplayName = descriptor.ControllerName, ControllerName = descriptor.ControllerName, ActionName = "Index" }; sections.Add(s); if (!isFormView) { sections.Last().IsActive = true; return(sections); } s = new BreadcrumbSection { DisplayName = descriptor.ActionName, ControllerName = descriptor.ControllerName, ActionName = descriptor.ActionName, IsActive = true }; sections.Add(s); return(sections); }
public CartPage(IElementFindService elementFindService, INavigationService navigationService, IBrowserService browserService) : base(elementFindService, navigationService) { _browserService = browserService; BreadcrumbSection = new BreadcrumbSection(elementFindService); CartPageElements = new CartPageElements(elementFindService); }
public CartPage(Driver driver) : base(driver) { BreadcrumbSection = new BreadcrumbSection(Driver); Elements = new CartPageElements(driver); Assertions = new CartPageAssertions(Elements); }
private CartPage(Driver driver) : base(driver) { BreadcrumbSection = new BreadcrumbSection(Driver); CartPageElements = new CartPageElements(driver); }
public CartPage() { _browserService = LoggingSingletonDriver.Instance; BreadcrumbSection = new BreadcrumbSection(LoggingSingletonDriver.Instance); CartPageElements = new CartPageElements(LoggingSingletonDriver.Instance); }