Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我尝试按下主页按钮时,我遇到了按键事件问题。
错误在哪里?
driver.execute_script("mobile: keyevent", {"keycode": 3})
我使用python和appium。
问题的解决方案是额外的空间。代码应如下所示:
driver.execute_script("mobile: keyevent",{ "keycode": 3 })