Beispiel #1
0
        public void ShowFlyout(string flyoutIcon = FlyoutIconAutomationId, bool usingSwipe = false, bool testForFlyoutIcon = true)
        {
            if (testForFlyoutIcon)
            {
                RunningApp.WaitForElement(flyoutIcon);
            }

            if (usingSwipe)
            {
                var rect = RunningApp.ScreenBounds();
                RunningApp.DragCoordinates(10, rect.CenterY, rect.CenterX, rect.CenterY);
            }
            else
            {
                RunningApp.Tap(flyoutIcon);
            }
        }