Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Press Home button in Appium Java client

Tags:

java

appium

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

like image 200
Shrikanth Kalluraya Avatar asked Oct 27 '25 21:10

Shrikanth Kalluraya


1 Answers

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
like image 176
Chandrashekhar Swami Avatar answered Oct 30 '25 11:10

Chandrashekhar Swami