调用selector = driver(name="icon file unselect")[1].exists https://github.com/Property def exists(self): return len(self.find_element_ids()) > self._index 此函数中返回的 len=1,index=1,就始终无法返回True,实际上self.find_element_ids()已经找到了对应的元素。
调用selector = driver(name="icon file unselect")[1].exists
https://github.com/Property
def exists(self):
return len(self.find_element_ids()) > self._index
此函数中返回的 len=1,index=1,就始终无法返回True,实际上self.find_element_ids()已经找到了对应的元素。