예제 #1
0
        public void ClickLeftMenuChildLink(string childLinkText)
        {
            HtmlSpan LeftMenuSpan = new HtmlSpan(LeftMenuControls.EmpowerBrowserWindow.EmpowerHtmlDocument);

            LeftMenuSpan.SearchProperties.Add(HtmlSpan.PropertyNames.DisplayText, childLinkText);
            LeftMenuSpan.Find();

            Mouse.Click(LeftMenuSpan.GetParent(), MouseButtons.Left);
        }
예제 #2
0
        public HomePage VerifyHomePageReached()
        {
            try
            {
                var homePageTitleElement = new HtmlSpan(_browser);
                homePageTitleElement.SearchProperties.Add(HtmlSpan.PropertyNames.Id, "HomePageTitle");
                homePageTitleElement.Find();
            }
            catch (Exception e)
            {
                Assert.Fail("Home page was not reached, could not find home page title: " + e.Message);
            }

            return(this);
        }