6 #include "UiSelector.h"
9 #include "ISearchable.h"
11 #include "AccessibleNode.h"
20 enum class DeviceType {
34 bool click(
const int x,
const int y)
override;
40 bool click(
const int x,
const int y,
const unsigned int intv)
override;
46 bool drag(
const int sx,
const int sy,
const int ex,
const int ey,
47 const int steps,
const int durationMs)
override;
53 int touchDown(
const int x,
const int y)
override;
59 bool touchMove(
const int x,
const int y,
const int seq)
override;
65 bool touchUp(
const int x,
const int y,
const int seq)
override;
71 bool wheelUp(
int amount,
const int durationMs)
override;
77 bool wheelDown(
int amount,
const int durationMs)
override;
83 bool pressBack(KeyRequestType type)
override;
89 bool pressHome(KeyRequestType type)
override;
95 bool pressMenu(KeyRequestType type)
override;
101 bool pressVolUp(KeyRequestType type)
override;
113 bool pressPower(KeyRequestType type)
override;
119 bool pressKeyCode(std::string keycode, KeyRequestType type)
override;
125 bool takeScreenshot(std::string path,
float scale,
int quality)
override;
139 bool hasObject(
const std::shared_ptr<UiSelector> selector)
const override;
146 const std::shared_ptr<UiSelector> selector)
const override;
152 std::vector<std::unique_ptr<UiObject>>
findObjects(
153 const std::shared_ptr<UiSelector> selector)
const override;
160 const std::function<
bool(
const ISearchable *)> condition)
const;
166 std::unique_ptr<UiObject>
waitFor(
167 const std::function<std::unique_ptr<UiObject>(
const ISearchable *)>
182 std::vector<std::unique_ptr<AccessibleNode>> getWindowRoot()
const;
188 bool waitForIdle()
const;