blob: 2d7a1172af1e0bf0f4af608ddcbeb496ddecae19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Linq.Expressions;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using NUnit.Framework;
using Xamarin.UITest;
using Xamarin.UITest.Queries;
namespace Xamarin.Forms.Core.UITests
{
internal sealed class StateViewContainerRemote : BaseViewContainerRemote
{
public StateViewContainerRemote (IApp app, Enum formsType, string platformViewType)
: base(app, formsType, platformViewType) { }
public void TapStateButton ()
{
App.Screenshot ("Before state change");
App.Tap (q => q.Raw (StateButtonQuery));
App.Screenshot ("After state change");
}
public AppResult GetStateLabel ()
{
return App.Query (q => q.Raw (StateLabelQuery)).First ();
}
}
}
|