예제 #1
0
        /// <summary>
        /// perform a click on the first MenuItem with this id (or label).
        /// </summary>
        /// <remarks> this will perform the clicked even if the menu item is disabled!
        /// so it is not a test of the display properties polling system.</remarks>
        /// <param name="id"></param>
        protected void ClickMenuItem(string groupId, string itemId)
        {
            //FindMenuItem(id).PerformClick();
            //object widget = FindWidgetForItem(id);

            ITestableUIAdapter adapter = (ITestableUIAdapter)m_window.MenuAdapter;

            adapter.ClickItem(groupId, itemId);
        }
예제 #2
0
        /// <summary>
        /// perform a click on the first MenuItem with this id (or label).
        /// </summary>
        /// <remarks> this will perform the clicked even if the menu item is disabled!
        /// so it is not a test of the display properties polling system.</remarks>
        /// <param name="id"></param>
        protected void ClickMenuItem(string groupId, string itemId)
        {
            ITestableUIAdapter adapter = (ITestableUIAdapter)m_window.MenuAdapter;

            adapter.ClickItem(groupId, itemId);
        }