public void InformationPlase() { var driver = DriverInstance.GetInstance(); InformationPage informationPage = new InformationPage(driver); informationPage.OpenPage(); informationPage.Test8(); }
public void InitPage() { loginPage = new LoginPage(this); activityPage = new ActivityPage(this); framePage = new FramePage(this); infoPage = new InformationPage(this); notiPage = new NotificationPage(this); listPage = new MyListPage(this); _currentWindowSize = new Size(this.Width, this.Height); mainFrame.Navigate(loginPage); }
public InformationPage OpenInformationPage(string title) { var menuItems = _currentPage.Menu.OpenMenu("Информация"); _wait.Until(ExpectedConditions.ElementIsVisible(By.CssSelector("div.dropdown-menu ul li.info-href"))); var menuItem = menuItems.FirstOrDefault(item => item.Title.GetInnerHtml() == title); if (menuItem == null) { throw new Exception($"Could not find menu with title '{title}' on mainmenu."); } menuItem.Title.Click(); return((InformationPage)(_currentPage = InformationPage.WaitForPage(_driver))); }
private void NagivateToPage(SlideDirection direction, InformationPage page) { this.SlideInFrom = direction == SlideDirection.RightToLeft ? Constants.SlideDistance : -Constants.SlideDistance; switch (page) { case InformationPage.Help: this.regionManager.RequestNavigate(RegionNames.InformationRegion, typeof(InformationHelp).FullName); break; case InformationPage.About: this.regionManager.RequestNavigate(RegionNames.InformationRegion, typeof(InformationAbout).FullName); break; default: break; } }
public void ShouldOpenInformationPageFromTopPanel(string linkText, string expectedPageHeader) { var homePage = new HomePage(_driver); var panelLinks = homePage.GetTopPanelLinks(); var panelLink = panelLinks.FirstOrDefault(link => link.GetInnerHtml() == linkText); if (panelLink == null) { throw new Exception($"Could not find link '{linkText}' on top panel."); } panelLink.Click(); var informationPage = InformationPage.WaitForPage(_driver); var pageHeader = informationPage.Header.GetInnerHtml(); Assert.AreEqual(expectedPageHeader, pageHeader); }
public InformationPageController(InformationPage page) { this.page = page; }
public App() { InitializeComponent(); MainPage = new InformationPage(); }
private void NagivateToSelectedPage() { this.eventAggregator.GetEvent <IsInformationPageChanged>().Publish( new Tuple <SlideDirection, InformationPage>(this.selectedPage >= this.previousPage ? SlideDirection.RightToLeft : SlideDirection.LeftToRight, this.selectedPage)); previousPage = this.selectedPage; }
public ContentReference GetInformationArchivePage(InformationPage inforPage) => inforPage?.ParentLink ?? ContentReference.EmptyReference;
public IEnumerable <InformationPage> GetLatestInformationPages(InformationPage inforPage, HttpContextBase httpContext, int count = 0, bool filterByAccessRights = true) { return(inforPage == null ? new List <InformationPage>() : GetLatestInformationPages(inforPage.ParentLink, httpContext, count, filterByAccessRights)); }
public InformationSteps(InformationPage informationPage) { this.informationPage = informationPage; }