openatx / facebook-wda

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

ios端 获取不到指定位置元素 #56

Open bengban opened 5 years ago

bengban commented 5 years ago

例如一个页面有多个Cell或Button/StaticText等属性元素,假设用s(className="Cell")进行定位。 用exists属性检查元素是否存在,s(className="Cell")[0].exists正常返回True,而s(className="Cell")[1].exists返回False,1以上目前都返回False 使用s(className='Cell', index=0).exists返回true 使用s(className='Cell', index=1).exists返回false 但是使用s(className='Cell', index=1).find_elements()能获取到15个元素