public void VerifyChoiceItemDisplay(ChoiceItem choice, bool expected) { ElementBase a = new ElementBase(string.Format("//*[contains(text(),'{0}')]", choice.Name), LocateBy.XPath); bool actual = a.IsDisplay; UIUtil.DefaultProvider.VerifyValue( expected, actual, string.Format("Verify display of choice item '{0}'", choice.Name)); }
public List<ChoiceItem> GetAgendaChoiceItem() { List<ChoiceItem> choiceItems = new List<ChoiceItem>(); for (int i = 1; i <= PageObject.PageObjectProvider.Builder.EventDetails.FormPages.AgendaPage.AgendaChoiceItemCount.Count; i++) { Clickable choiceItem = new Clickable(PageObject.PageObjectProvider.Builder.EventDetails.FormPages.AgendaPage.AgendaChoiceItemCount.Locator + "[" + i + "]//a", LocateBy.XPath); ChoiceItem choice = new ChoiceItem(choiceItem.Text); choiceItems.Add(choice); } return choiceItems; }