安卓自动化测试:Android studio 自带的 Record Espresso Test || [ Appium & (Android studio || Python|| Eclipse ) ]

时间:2024-01-20 18:32:39
1、Android studio 自带的 Record Espresso Test 
2、 Appium & Android studio 
Windows 下java环境变量的配置(Windows7 ,8,8.1,10)
安卓自动化测试:Android studio 自带的 Record Espresso Test  ||  [ Appium & (Android studio || Python|| Eclipse ) ]
3、 Appium & Android studio & Python
  • 过id定位元素:find_element_by_id("id_vaule")
  • 通过name定位元素:find_element_by_name("name_vaule")
  • 通过tag_name定位元素:find_element_by_tag_name("tag_name_vaule")
  • 通过class_name定位元素:find_elements_by_class_name("class_name")
  • 通过css定位元素:find_element_by_css_selector();用css定位是比较灵活的
  • 通过xpath定位元素:find_element_by_xpath("xpath")
  • 通过link定位:find_element_by_link_text("text_vaule")或者find_element_by_partial_link_text()
java -jar selendroid-standalone-0.17.0-with-dependencies.jar -app selendroid-test-app-0.17.0.apk
安卓自动化测试:Android studio 自带的 Record Espresso Test  ||  [ Appium & (Android studio || Python|| Eclipse ) ]
安卓自动化测试:Android studio 自带的 Record Espresso Test  ||  [ Appium & (Android studio || Python|| Eclipse ) ]