Application name

I want to verify that application name is displaying correct, after installing the app from appium.Can anyone help me?

  1. Launch App
  2. Press Home Button using pressKeyEvent
  3. pressKeyEvent 67 to see thumbnails of recent app’s
  4. driver.findElementByAccessibilityID(“AppName”).size()>0 it means app name is as u expected , put this statement in Assert to verify

Alternatively u can also go to settings app to verify app name

You can also open Menu to verify app name

  1. Launch App
  2. Press Home Button using pressKeyEvent
  3. Press Menu button using pressKeyEvent
  4. keep swiping towards right until driver.findElementByAccessibilityID(“AppName”).size()>0

how to trigger press keyevent?

use javaclient3.2
_driver.pressKeyCode(AndroidKeyCode.HOME);

I was using javaclient 1.5 version. I wrote code like this (something like that)

(AppiumDriver)driver.pressKeyCode(AndroidKeyCode.HOME);