Is there any way to press device "recent" / "overview" key?

want to click on android device “recent” key
in katalon back and home button press option is available but is there any way to click on recent key which have key code 187.

Still no response to this? I will be curious to know if anyone has figured this out

1 Like

Hi @Springct & @mohammad.arif,

Katalon still has no keyword for press “recent” / “overview” key. But you could get the Appium driver and do it by yourself.

import com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory
import io.appium.java_client.android.AndroidDriver
import io.appium.java_client.MobileElement
import io.appium.java_client.android.nativekey.AndroidKey
import io.appium.java_client.android.nativekey.KeyEvent

AndroidDriver<MobileElement> driver = MobileDriverFactory.getDriver()
driver.pressKey(new KeyEvent(AndroidKey.APP_SWITCH))

Excellent, I didn’t realise it was called APP_SWITCH. I was trying to look for Recent or Overview. Thanks for your help!

1 Like

Yeah, happy to help! /=)