コード例 #1
0
ファイル: LogText.cs プロジェクト: aurnoi1/IC-Navigation
        /// <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
ファイル: ControlSteps.cs プロジェクト: aurnoi1/IC-Navigation
 private ControlSteps(AppiumContext appiumContext)
 {
     this.sut = appiumContext.SUT;
 }