Original error: gsmCall method is only available for emulators

在夜神模拟器执行报错

self.driver.make_gsm_call('5551234567', GsmCallActions.CALL)

意思是gsmCall这个命令不支持,只支持下面这些命令

selenium.common.exceptions.UnknownMethodException: Message: Unknown mobile command "gsmCall". Only shell,execEmuConsoleCommand,dragGesture,flingGesture,doubleClickGesture,longClickGesture,pinchCloseGesture,pinchOpenGesture,swipeGesture,scrollGesture,scrollBackTo,scroll,viewportScreenshot,viewportRect,deepLink,startLogsBroadcast,stopLogsBroadcast,acceptAlert,dismissAlert,batteryInfo,deviceInfo,getDeviceTime,changePermissions,getPermissions,performEditorAction,startScreenStreaming,stopScreenStreaming,getNotifications,listSms,type,sensorSet,deleteFile,clearApp,startActivity,startService,stopService,broadcast,getContexts,installMultipleApks,unlock commands are supported. 

gsmCall方法只适用于emulators,这里的emulators是指的Android SDK自带的模拟器,还是一般模拟器?

An unknown server-side error occurred while processing the command. Original error: gsmCall method is only available for emulators

猜你喜欢

转载自blog.csdn.net/seanyang_/article/details/132167788
今日推荐