python3+uiautomator2获取控件属性

python3+uiautomator2获取控件属性

import uiautomator2  as u2
import logging
logging.basicConfig(level = logging.INFO,format = '%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logger = logging.getLogger(__name__)

d = u2.connect()

print(d(resourceId="com.hl.train:id/quickTakePhoto").get_text())
print(d(text=u"用户名:").info)


python3+uiautomator2获取控件属性_第1张图片

你可能感兴趣的:(python3+uiautomator2获取控件属性)