Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 private NavigationSteps(AppiumContext appiumContext)
 {
     this.sut = appiumContext.SUT;
 }
Ejemplo n.º 3
0
 private ControlSteps(AppiumContext appiumContext)
 {
     this.sut = appiumContext.SUT;
 }