macaca icon indicating copy to clipboard operation
macaca copied to clipboard

Is there any method to tap/click at particular rect/point in an element/page?

Open mpreethi90 opened this issue 10 years ago • 8 comments

  • Macaca Version:
  • Macaca Doctor:
  • Operate System:
  • programming Language:

mpreethi90 avatar Sep 08 '16 02:09 mpreethi90

JS? use elementBy...

brucejcw avatar Sep 08 '16 05:09 brucejcw

No. My requirement is something like tapping at a particular rect. Example- tapAtPoint(200,50) in the current window. Do we have something like this in macaca?

mpreethi90 avatar Sep 12 '16 05:09 mpreethi90

any help on this please?

mpreethi90 avatar Sep 20 '16 05:09 mpreethi90

for android, you can use driver.moveTo(null, x, y).click()
IOS not support yet

brucejcw avatar Sep 20 '16 06:09 brucejcw

@brucejcw android的driver.moveTo(null, x, y).click()有些场景下不能用,比如密码键盘,只能通过模拟tap的方式才能有效,tapAtPoint(200,50)这种接口会支持吗?

CodeToSurvive1 avatar Sep 21 '16 08:09 CodeToSurvive1

@CodeToSurvive1 目前还不支持哦....这些都是非标准的api了, 可以考虑自己封装一个

brucejcw avatar Sep 22 '16 01:09 brucejcw

@brucejcw 后面会考虑添加吗?

CodeToSurvive1 avatar Sep 22 '16 01:09 CodeToSurvive1

@CodeToSurvive1 暂不不考虑添加

brucejcw avatar Nov 14 '16 05:11 brucejcw