コード例 #1
0
ファイル: Issue2338.cs プロジェクト: sung-su/maui
        public async Task TestForSuccess(Xamarin.UITest.IApp RunningApp, Type type)
        {
            var test = tests.FirstOrDefault(x => x.Value == type);

            RunningApp.WaitForElement(test.Key);
            RunningApp.Tap(test.Key);
            //It takes a second for everything to settle
            await Task.Delay(2500);

            RunningApp.WaitForElement($"Success: {type.Name.Replace("_", " ")}");
            RunningApp.Tap("Start Over");
        }
コード例 #2
0
ファイル: Issue1898.cs プロジェクト: tralivali1234/maui
        internal static void RunUITests(Xamarin.UITest.IApp RunningApp)
        {
            RunningApp.WaitForElement(Title1);
            RunningApp.Tap(ChangeTitle1);
            RunningApp.Tap(ChangeIcon1);
            RunningApp.Tap(ChangeIconPage2);
            RunningApp.Tap(ChangeIcon1Null);
            RunningApp.WaitForElement(ChangeTitle1);


            RunningApp.Tap(Title2);
            RunningApp.Tap(ChangeTitle2);
            RunningApp.Tap(ChangeIcon2);
            RunningApp.Tap(ChangeIconPage1);
            RunningApp.Tap(ChangeIcon2Null);
            RunningApp.WaitForElement(ChangeTitle2);
        }
コード例 #3
0
ファイル: ShellStoreTests.cs プロジェクト: hevey/maui
        public void ShellStoreSetup()
        {
            RunningApp = AppSetup.Setup();
            if (RunningApp.Query("SwapRoot - Store Shell").Length > 0)
            {
                RunningApp.Tap("SwapRoot - Store Shell");
            }
            else
            {
                RunningApp.NavigateTo("SwapRoot - Store Shell");
            }

            RunningApp.WaitForElement("Welcome to the HomePage");
        }