/// <summary> /// Selects another tab from the link selector options. /// </summary> /// <param name="tabName">The name of the tab.</param> public void SwitchToSelectedTab(string tabName) { HtmlDiv tabs = EM.GenericContent .ContentBlockLinkSelector .TabsNavigation .AssertIsPresent("Navigation tabs"); HtmlControl tabLabel = tabs.ChildNodes.Where(n => n.InnerText.Contains(tabName)).FirstOrDefault().As <HtmlControl>(); Assert.IsNotNull(tabLabel, "The tab label " + tabName + " was not found"); HtmlInputRadioButton option = tabLabel.Find.ByExpression <HtmlInputRadioButton>("tagName=input", "type=radio"); option.AssertIsPresent(tabName); option.Click(); ActiveBrowser.WaitForAsyncRequests(); ActiveBrowser.RefreshDomTree(); }