private UnspecifiedPageObject ClickItem(ElementScope itemScope, IWebTestActionOptions actionOptions) { var itemCommandScope = itemScope.FindLink(); var itemCommand = new CommandControlObject(Context.CloneForControl(itemCommandScope)); return(itemCommand.Click(actionOptions)); }
private UnspecifiedPageObject SwitchTo(ElementScope tabScope, IWebTestActionOptions actionOptions) { var tabCommandScope = tabScope.FindLink(); var tabCommand = new CommandControlObject(Context.CloneForControl(tabCommandScope)); return(tabCommand.Click(actionOptions)); }
private static UnspecifiedPageObject SelectMenuOrSubMenuItem( ControlObjectContext context, ElementScope menuItemScope, IWebTestActionOptions actionOptions) { var menuItemCommandScope = menuItemScope.FindLink(); var menuItemCommand = new CommandControlObject(context.CloneForControl(menuItemCommandScope)); return(menuItemCommand.Click(actionOptions)); }