一、打开appium,进入录制界面

二、在需要定位的地方左键点击,右侧会显示该元素的信息。(如下图)

appium+python如何定位元素

三、附上代码实例:

el8 = driver.find_element_by_id("com.nvrcloud.android.presentation:id/add")
el8.click()
time.sleep(5)

相关文章:

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