appium版本 1.6.3

 desired_caps['automationName']='uiautomator2'
 
 def _find_toast(self,message,timeout,poll_frequency,driver):
        message = '//*[contains(@text,\'{}\')]'.format(message)
        element = WebDriverWait(driver,timeout,poll_frequency).until(expected_conditions.presence_of_element_located((By.XPATH,message)))
        print element

相关文章:

  • 2022-12-23
  • 2022-01-20
  • 2022-12-23
  • 2021-09-06
  • 2022-12-23
  • 2021-07-02
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-10
  • 2021-06-23
  • 2022-12-23
  • 2021-09-13
  • 2022-12-23
相关资源
相似解决方案