Search code examples
javaappium

Press Home button in Appium Java client


I am new to appium. It might be a silly question. Wanted to know how will i click home button using java bindings.

Thanks in advance


Solution

  • Well if you want to send an app in background then simply use driver.CloseApp() function and relaunch it by driver.OpenApp()

    You can also use press keycode method Below are the codes

    Home Menu Button - 82
    Back Button - 4
    Recent app - 187