android - Identifying error on the native app using appium when some field is blank -


i using appium automate native android app ui , functionality. requirement capture error message comes when username kept blank during login. error message shown red exclamation mark on username field , cannot identified uiautomator. there way capture text of error message via appium

you can try find element using xpath , providing text value expect error message object possess.

$driver.find_element :xpath, '//text[@text="err msg"]'

if element found can retreive out other properties.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -