示例#1
0
        public void InformationPlase()
        {
            var             driver          = DriverInstance.GetInstance();
            InformationPage informationPage = new InformationPage(driver);

            informationPage.OpenPage();

            informationPage.Test8();
        }
示例#2
0
        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);
        }
示例#3
0
        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)));
        }
示例#4
0
        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;
            }
        }
示例#5
0
        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;
 }
示例#7
0
        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;
 }
示例#9
0
 public ContentReference GetInformationArchivePage(InformationPage inforPage)
 => inforPage?.ParentLink ?? ContentReference.EmptyReference;
示例#10
0
 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));
 }
示例#11
0
 public InformationSteps(InformationPage informationPage)
 {
     this.informationPage = informationPage;
 }