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
Post a Comment