I want to verify that application name is displaying correct, after installing the app from appium.Can anyone help me?
- Launch App
- Press Home Button using pressKeyEvent
- pressKeyEvent 67 to see thumbnails of recent app’s
- 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
- Launch App
- Press Home Button using pressKeyEvent
- Press Menu button using pressKeyEvent
- 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);