Appium模拟设备交互方法(来电话、收短信、切换网络类型)

来电话:

driver.make_gsm_call('135****6666', GsmCallActions.CALL)

 

收短信:

driver.send_sms('132****8888', 'hello,world~')

 

网络类型:

driver.set_network_connection(1)                       # 飞行模式为 1、数据流量为 2、wifi流量为 4、数据和WiFi全部打开为 6

posted on 2020-08-03 16:00  进击的麻瓜  阅读(503)  评论(1编辑  收藏  举报