移动端自动化测试 python appium Android

http://blog.csdn.net/sasoritattoo/article/details/17579739

Android自动化测试UiAutomator

UiSelector对象

ele = self.driver.find_element_by_android_uiautomator('new UiSelector().className("android.widget.ListView").childSelector(new UiSelector().className("android.widget.LinearLayout").index(%s).childSelector(new UiSelector().className("android.widget.CheckBox")))'%i)


by_xpath

elems = self.driver.find_elements_by_xpath(
            "//android.widget.ListView/android.widget.RelativeLayout/android.widget.TextView[contains(@resource-id, 'file_name')]")

你可能感兴趣的:(自动化测试)