selecttextbyname('<window name>', '<text object name>')
Select text by name
Refer: http://cgit.freedesktop.org/ldtp/ldtp/tree/src/text.c