openatx / facebook-wda

Facebook WebDriverAgent Python Client Library (not official)
MIT License
1.72k stars 266 forks source link

add find elements from element #17

Closed DoubleHYH closed 7 years ago

DoubleHYH commented 7 years ago

find elements from element

god = s(className = "Cell")
childList = god[1].child(className = "StaticText")

maybe can use it like this:

s(className = "Tabel").child(className = "Cell").child(className = "StaticText")

but i didn't test this way

codeskyblue commented 7 years ago

?what happened

DoubleHYH commented 7 years ago

功能上是用一个很粗暴的方式去实现的子节点查找,我看了一下你新加的Object类,用这个东西去实现比我之前写的实现方法合理多了。所以就关了。当然,不会用github,不清楚是不是可以这么操作

codeskyblue commented 7 years ago

留着呗,我看你的当参考

codeskyblue commented 7 years ago

child方法已添加

codeskyblue commented 7 years ago

这个接口你是从哪里看到的,有代码地址吗? @DoubleHYH

DoubleHYH commented 7 years ago

https://w3c.github.io/webdriver/webdriver-spec.html