Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/320.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android Keyevent不';行不通_Android_Python_Keyevent_Appium - Fatal编程技术网

Android Keyevent不';行不通

Android Keyevent不';行不通,android,python,keyevent,appium,Android,Python,Keyevent,Appium,当我尝试按下home(主页)按钮时,keyevents(按键事件)出现问题 臭虫在哪里 driver.execute_script("mobile: keyevent", {"keycode": 3}) 我使用python和appium。这个问题的解决方案是额外的空间。 代码应该如下所示: driver.execute_script("mobile: keyevent",{ "keycode": 3 })

当我尝试按下home(主页)按钮时,keyevents(按键事件)出现问题

臭虫在哪里

driver.execute_script("mobile: keyevent", {"keycode": 3})

我使用python和appium。

这个问题的解决方案是额外的空间。 代码应该如下所示:

driver.execute_script("mobile: keyevent",{ "keycode": 3 })