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