?????Appium-Python api
???????????? ???????[ 2015/1/29 14:41:24 ] ?????????????????? APP
'''.appium api????? ??????python????????壬2015/1/5
???д?????????????????????????????????????????????ok??api
?????Mads Spiral QQ??79523822 ????????????????qq?????wyx
?????????????????
'''
#?????????????Strings.xml???????????
get_app_string()
#????????????????????????????Strings.xml??????
get_app_string(String language)
#??????????????????????key???????key???????AndroidKeyCode????
send_key_event(int key)
#??????activity?????磨.ApiDemos??
current_activity()
#????bundleId???ж??????????????
is_app_installed(String bundleId)
#???app??appPath????????·??
install_app(String appPath)
#ж??app.bundleId??android?д???????????????ios????????bundleId???
remove_app(String bundleId)
#?????????????home?????????????
close_app()
#??????
launch_app()
#??closeApp?????launchAPP
reset_app()
#???????????64λ???д????????????????С??????????????????push???豸???
push_file(String remotePath?? byte[] base64Data)
#???豸??????pull???????????
pull_file(String remotePath)
#???豸????????pull??????????????????????/data/local/tmp?μ??????
pull_folder(String remotePath)
#??????????????????????????????????wifi???????????????NetworkConnectionSetting?е???????????????????????????
set_network_connect(NetworkConnectionSetting connection)
#?????????????
get_network_connection()
#ios???????
hide_keyboard()
#???????????????ios???
hide_keyboard(String strategy?? String keyName)
#??????touch????????touch????????TouchAction??????
perform_touchAction(TouchAction touchAction)
#???element?????????£?duration*5??????????????????fingers?Ρ?
tap(int fingers?? WebElement element?? int duration)
#???(x??y)???£?duration*5????????????????fingers?Ρ?
tap(int fingers?? int x?? int y?? int duration)
#??(startx??starty)??????endx??endy??????duration???????????????5????
swipe(int startx?? int starty?? int endx?? int endy?? int duration)
#2???????????????????????????????
pinch(WebElement el)
#???x??y????????????ó???x??y-100????(x??y+100)?????????2????????????????????????x??y??
pinch(int x?? int y)
#??pinch(el)?????????????????????????????????????????????????????
zoom(WebElement el)
#??pinch(x??y)??????????????x??y???????x??y-100?????x??y+100????????
zoom(int x?? int y)
#??????????????
lock_screen(int seconds)
#?????????
shake()
#?????????text???????????????????
scroll_to(String text)
#?????????text?????????????????????
scroll_to_exact(String text)
#??????????
context(String name)
#??????????
get_context_handles()
#?????????
get_context()
#???????????????????
rotate(ScreenOrientation orientation)
#??????????????
get_orientation()
#????ios?е?uiautomation?е?????????????
find_element_by_ios_uiautomation(String using)
#??????????????????????????
find_elements_by_ios_uiautomation(String using)
#????android??uiautoamtor?е???????????????????
find_element_by_android_uiautomator(String using)
#???????????????÷?????????????
find_elements_by_android_uiautomator(String using)
#????accessibility id????????????
find_element_by_accessibilityid(String using)
#????accessibility id??????????
find_elements_by_accessibilityid(String using)
'''AppiumDriver?????????????????????????绬????????????????
TouchAction???????????е????????????????У???????????????????????
??????????????????????????????????????С?'''
TouchAction()
#?????????press????
press(WebElement el)
#?????????x??y????????press????
press(int x?? int y)
#????el????????x???????x??λ??y??????y??λ???????????press??????
press(WebElement el?? int x?? int y)
#???????????????ж?????????????????
release()
#??el?????????????????????????
move_to(WebElement el)
#???x??y?????????????????????????????
move_to(WebElement el?? int x?? int y)
#???????????????????
tap(WebElement el)
#???x??y??????????
tap(int x?? int y)
#????el?????????????x?????????x??λ??y?????????y??λ?????????????
tap(WebElement el?? int x?? int y)
#???????????????????????
wait_action()
#???ms??
wait_action(int ms)
#???????
long_press(WebElement el)
#????
long_press(int x?? int y)
#??????
long_press(WebElement el?? int x?? int y)
#?????и????
cancel()
#??и????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11