macaca icon indicating copy to clipboard operation
macaca copied to clipboard

android元素的获取

Open jekiki opened this issue 6 years ago • 1 comments

  • Macaca Version:

  • Macaca Doctor Logs:

  • Operate System:

  • Programming Language: python

1、如何通过android的属性获取元素,App inspector中的 text 、resource-id、content-desc,不通过xpath来获取

2、element_by_name、element_by_id分别对应什么

3、支持正则表达式匹配元素吗?

jekiki avatar May 21 '19 09:05 jekiki

This is the translated issue:


Get android element

  • Macaca Version:

  • Macaca Doctor Logs:

  • Operate System:

  • Programming Language: Python

  1. How to get the element through the android property, the text, resource-id, content-desc in the App inspector, not obtained by xpath

  2. What is the corresponding element_by_name and element_by_id?

  3. Does it support regular expression matching elements?

macaca-bot avatar May 21 '19 09:05 macaca-bot