コード例 #1
0
        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));
        }