Android EditText errors

420 views
Skip to first unread message

Mark Cox

unread,
Jun 27, 2014, 9:21:45 AM6/27/14
to appium-...@googlegroups.com
Hi,

I am new to Appium so hoping for some help.
We are trying to automate a app, and as part of this we have EditText fields that can display an error if validation on that field fails. The error is seemingly set by EditText.setError() within the code
but I don't seem to be able to grab the content of the error message within my tests.

Any help much appreciated.

Thanks

Aniket Gadre

unread,
Jun 27, 2014, 9:59:03 AM6/27/14
to Mark Cox, appium-...@googlegroups.com
Error which is set, is it a text view ? if yes, you should be able to identify it as an independent object.

Best Regards,
Aniket Gadre
 
Programming can be fun, so can cryptography; however they should not be combined.


--
http://appium.io
---
You received this message because you are subscribed to the Google Groups "Appium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appium-discus...@googlegroups.com.
Visit this group at http://groups.google.com/group/appium-discuss.
For more options, visit https://groups.google.com/d/optout.

Mark Cox

unread,
Jun 27, 2014, 11:39:46 AM6/27/14
to appium-...@googlegroups.com, mark...@hotmail.com
It is set on a EditText field, the same that is mentioned within this post: 

I am unable to see the popup error message within uiautomatorviewer.

Any thoughts?

Aniket Gadre

unread,
Jun 27, 2014, 11:12:14 PM6/27/14
to Mark Cox, appium-...@googlegroups.com

Hmmm I faced the same issue. This is not possible thru appium. You will have to cover it in your unit tests

Mark Cox

unread,
Jun 30, 2014, 3:49:21 AM6/30/14
to appium-...@googlegroups.com, mark...@hotmail.com
Oh ok, not really what I wanted to hear!

Thanks
Reply all
Reply to author
Forward
0 new messages