def is_element(self, *loc):  # 判断元素是否存在
        e = self.driver.find_elements(*loc) == []
        if e:
            return False  # 元素不存在返回False
        else:
            return True  # 元素存在返回True

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-10
猜你喜欢
  • 2021-09-02
  • 2021-06-11
  • 2021-06-15
  • 2021-05-28
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案