Appium getText() returns android:hint value from EditText?
<p>I just started investigating the use of Appium for test automation of a native Android app.  In this app, the XML layout for the UI contains the following declaration for an EditText control:</p>

<pre><code>&lt;EditText
    android:id="@+id/inputText"
    android:layout_width="fill_parent"
    android:layout_height="0px"
    android:layout_weight="0.5"
    android:inputType="text|textMultiLine"
    android:hint="Type or paste text here"
    android:text="" /&gt;
</code></pre>

<p>When the app runs, the text value of the EditText is obviously empty so it displays the hint value ("Type or paste text here").  In my test case, if I call getText() on this EditText, the return value I get back is not an empty string as I'd expect.  Instead, I get back the hint value of the EditText ("Type or paste text here").  This is the first time I've used Appium so it's possible that this is the expected behavior.  But if that's the case, how do I assert that the text value of the EditText is, in fact, empty if getText() returns the value of the hint?  I suppose I could assert that the value returned by getText() is equal to "Type or paste text here" but then if the user actually entered that exact text, how would I know the difference?</p>