istextstateenabled('<window name>', '<text object name>')
Checks whether the text object is in editable state or not.
Refer: http://cgit.freedesktop.org/ldtp/ldtp/tree/src/text.c