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

原文地址:https://www.cnblogs.com/zzxzxj/p/13426792.html