Im writing some QA tests for android and faced with issue that any of known methods for pressing 'Home' button dont work. I want to mention that I use AppiumDriver, not AndroidDriver.
((AndroidDriver) driver).pressKeyCode(AndroidKeyCode.HOME); - this one doenst work driver.pressKeyCode(AndroidKeyCode.HOME); - doesnt work as well
Is there any method to press android button in 2020?