コード例 #1
0
        public void Clear()
        {
            var clear = AppSession.FindElementByAccessibilityId("Clear");

            TouchScreen.SingleTap(clear.Coordinates);
            Assert.AreEqual(string.Empty, _GetResultText());
        }
コード例 #2
0
        public void Tap()
        {
            var touchable = AppSession.FindElementByAccessibilityId("Touchable");

            TouchScreen.SingleTap(touchable.Coordinates);
            Assert.AreEqual("Tapped", _GetLastResultString());
        }
コード例 #3
0
 /// <summary>
 ///     Performs the action.
 /// </summary>
 public async Task Perform(CancellationToken cancellationToken = new CancellationToken())
 {
     await TouchScreen.SingleTap(ActionLocation, cancellationToken);
 }