Esempio n. 1
0
        public static void ExtendedTest()
        {
            Console.WriteLine("Test started...");

            IUIContext context = new ExtendedPage();

            Console.WriteLine("Page loaded");

            //check page controls
            string fieldId = "LastName";

            Console.WriteLine("{0} field is present: {1}", fieldId, context.IsFieldPresent(fieldId));

            string buttonId = "Save";

            Console.WriteLine("{0} button is present: {1}", buttonId, context.IsButtonPresent(buttonId));

            string dropdownId = "Gender";

            Console.WriteLine("{0} dropdown options: {1}", dropdownId,
                              string.Join(", ", context.GetDropdownOptions(dropdownId)));

            Console.WriteLine("Test finished...");
        }
Esempio n. 2
0
 /// <summary>
 /// Creates a new page with the current View as parent.
 /// </summary>
 /// <param name="enterOnInitialize">if set to <c>true</c>, the Enter Action will be triggered automatically. Default is true.</param>
 /// <typeparam name="TPageView">The type of the page view.</typeparam>
 /// <typeparam name="TPageViewModel">The type of the page view model.</typeparam>
 public TPageView CreatePage <TPageView, TPageViewModel>(bool enterOnInitialize = true)
     where TPageViewModel : ViewModel <TPageView, TPageViewModel>, new()
     where TPageView : ExtendedPage <TPageView, TPageViewModel>, new()
 {
     return(ExtendedPage <TPageView, TPageViewModel> .Create(View, _actionQueueManager, enterOnInitialize));
 }