Пример #1
0
        /// <summary>
        /// Log a text.
        /// This method is domain specific and should be accessible from any INavigable
        /// (as far they have path to next INavigable).
        /// </summary>
        /// <param name="origin">this INavigable.</param>
        /// <param name="text">The text to log.</param>
        /// <returns>The IVewMenu where the log was enter.</returns>
        public static IViewMenu Log(this INavigable origin, string text)
        {
            IUIAccess mySession = origin.Session as IUIAccess;
            IViewMenu viewMenu  = mySession.ViewMenu;

            origin.GoTo(viewMenu)
            .Do(() =>
            {
                viewMenu.EnterText(text);
            });

            return(viewMenu);
        }
Пример #2
0
 private NavigationSteps(AppiumContext appiumContext)
 {
     this.sut = appiumContext.SUT;
 }
Пример #3
0
 private ControlSteps(AppiumContext appiumContext)
 {
     this.sut = appiumContext.SUT;
 }