macaca icon indicating copy to clipboard operation
macaca copied to clipboard

macaca怎么获取toast信息的内容?

Open wynanwong opened this issue 9 years ago • 2 comments

  • Macaca Version: 1.2.0

  • Macaca Doctor Logs:

  • Operate System: mac 10.12.3

  • Programming Language: nodejs

@xudafeng macaca怎么获取toast信息的内容?API文档看了一遍,没看到相应的方法。

wynanwong avatar Mar 28 '17 03:03 wynanwong

@wynanwong Toast message will be dynamically created by the OS .There will be no locators for Toast messages element. The only solution , you can compare the images before toast and after Toast. But still getting content from Images is one more problem. (Toast消息将由OS动态创建。Toast消息元素将不会有定位符。唯一的解决方案,您可以比较吐司之前和之后的图像。但仍然从图像获取内容还有一个问题。)

dharmakrish6 avatar Mar 29 '17 17:03 dharmakrish6

try this https://macacajs.github.io/computer-vision

xudafeng avatar Apr 22 '17 08:04 xudafeng