?????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