public MenuBarPage SelectSimpleMenuBarOption(string name, string child = null) { MenuBarItem option = this.SimpleMenuBar.ClickOption(name); if (!string.IsNullOrWhiteSpace(child)) { option.ClickChildOption(child); } return(this); }
public MenuBarPage SelectMenuBarWithSubMenusOption(string name, string child = null, string subChild = null) { MenuBarItem option = this.MenuBarWithSubMenus.ClickOption(name); if (string.IsNullOrWhiteSpace(child)) { return(this); } if (string.IsNullOrWhiteSpace(subChild)) { option.ClickChildOption(child); } else { MenuFlyoutSubItem childSubItem = option.ClickChildSubOption(child); childSubItem.ClickChildOption(subChild); } return(this); }