public void SelectUser(string lastName) { CCElement targetElement, targetParent, rdoTarget; Wait.Until(h => DivContainer.Displayed); List <CCElement> lastNames = DivContainer.GetDescendants(".//table/tbody/tr/td[2]"); targetElement = lastNames.FirstOrDefault(h => h.Text == lastName); if (targetElement == null) { throw new Exception("Could not find user with last name: " + lastName); } targetParent = targetElement.GetParent(); rdoTarget = targetParent.GetDescendant(".//td[1]/input"); rdoTarget.Click(); BtnOk.Click(); }
/// <summary> /// /// </summary> public override void Dispose() { // write footer as well using (var mp = new DivContainer(m_stream, "", "container")) { HR(); using (var f = new Footer(m_stream)) { f.Out("Copyright 2015 Wildbunny Ltd | "); Href(m_stream, "Support", HtmlAttributes.href, "https://bitsharestalk.org/index.php?topic=12317.0"); f.Out(" | "); Href(m_stream, "Github", HtmlAttributes.href, "https://github.com/wildbunny/metaexchange"); f.Out(" | Please vote for "); Href(m_stream, "dev-metaexchange.monsterer", HtmlAttributes.href, "bts:dev-metaexchange.monsterer/approve"); } } // end body m_stream.WriteLine("</body>"); base.Dispose(); }
public PageMain(ComponentJson owner) : base(owner) { BulmaNavbar = new BulmaNavbar(this) { BrandTextHtml = "<b>WorkplaceX</b>.org" }; // Hero new Custom01(this); // Columns var columns = new DivContainer(this) { CssClass = "columns" }; var column0 = new Div(columns) { CssClass = "column is-one-fifth has-background-white-ter" }; var column1 = new Div(columns) { CssClass = "column" }; var column2 = new Div(columns) { CssClass = "column is-one-fifth" }; // Container // var container = new DivContainer(column1) { CssClass = "container" }; Content = new Div(column1) { CssClass = "content content-bulma-framework" }; // Content = column1; GridNavigate = new GridNavigate(this) { IsHide = true }; GridLanguage = new GridLanguage(this) { IsHide = true }; // Footer Footer = new Custom02(this); BulmaNavbar.GridAdd(GridLanguage, isNavbarEnd: true, isSelectMode: true); BulmaNavbar.GridAdd(GridNavigate); new BulmaNavbarMenu(column0) { Grid = GridNavigate }; // Preserve login user if (this.ComponentOwner <AppMain>().IsNavigateReload <AppMain>(out var appJsonPrevious)) { LoginUserRoleAppList = appJsonPrevious.PageMain.LoginUserRoleAppList; } }