macaca 支持node,java田篇,python
node:api doc?替废、source code
python:api doc?、source code
java:api doc?泊柬、?source code
一椎镣、 python
1.1 元素定位
ID定位:element_by_id(value);element_by_id(value)兽赁;id屬性是唯一的
self.driver.element_by_id('com.evideo.kmbox:id/dialog_close_iv').click()
self.driver.elements_by_id('com.evideo.kmbox:id/dialog_close_iv').click()
name定位:element_by_name(value)状答,elements_by_name(value)
self.driver.element_by_name('確定").click()
self.driver.element_by_name('確定").click()