Exemplo n.º 1
0
 public void ScrollUpTo(Func <AppQuery, AppQuery> toQuery, Func <AppQuery, AppQuery> withinQuery = null,
                        ScrollStrategy strategy = ScrollStrategy.Auto, double swipePercentage = 0.67,
                        int swipeSpeed          = 500, bool withInertia = true, TimeSpan?timeout = null)
 {
     ScrollTo(WinQuery.FromQuery(toQuery), withinQuery == null ? null : WinQuery.FromQuery(withinQuery), timeout,
              down: false);
 }
Exemplo n.º 2
0
 public void DragAndDrop(Func <AppQuery, AppQuery> from, Func <AppQuery, AppQuery> to)
 {
     DragAndDrop(
         FindFirstElement(WinQuery.FromQuery(from)),
         FindFirstElement(WinQuery.FromQuery(to))
         );
 }
Exemplo n.º 3
0
        public void ScrollUp(Func <AppQuery, AppQuery> query = null, ScrollStrategy strategy = ScrollStrategy.Auto,
                             double swipePercentage          = 0.67, int swipeSpeed = 500,
                             bool withInertia = true)
        {
            if (query == null)
            {
                Scroll(null, false);
                return;
            }

            WinQuery winQuery = WinQuery.FromQuery(query);

            Scroll(winQuery, false);
        }
Exemplo n.º 4
0
        public void Tap(Func <AppQuery, AppQuery> query)
        {
            WinQuery winQuery = WinQuery.FromQuery(query);

            Tap(winQuery);
        }
Exemplo n.º 5
0
        public AppResult[] Query(Func <AppQuery, AppQuery> query = null)
        {
            ReadOnlyCollection <WindowsElement> elements = QueryWindows(WinQuery.FromQuery(query));

            return(elements.Select(ToAppResult).ToArray());
        }
Exemplo n.º 6
0
 public void DoubleTap(Func <AppQuery, AppQuery> query)
 {
     DoubleTap(WinQuery.FromQuery(query));
 }
Exemplo n.º 7
0
        ReadOnlyCollection <WindowsElement> QueryWindows(Func <AppQuery, AppQuery> query, bool findFirst = false)
        {
            WinQuery winQuery = WinQuery.FromQuery(query);

            return(QueryWindows(winQuery, findFirst));
        }