문제

I have a problem with keyevents when I try to press the home button.

Where is the bug?

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

I use python and appium.

도움이 되었습니까?

해결책

The solution to the problem were extra spaces. The code should look like this:

driver.execute_script("mobile: keyevent",{ "keycode": 3 })
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top