Logo Search packages:      
Sourcecode: ldtp-doc version File versions  Download package

gettextvalue

Syntax

gettextvalue ('<window name>', '<component name>', <startoffset>, <endoffset>)

Description

returns the text within the given range in the component given by the component name. <startoffset> and <endoffset> are optional. If they are ommited, the entire text is returned.

Implementation

Todo:
Return values:
text data of string type on success, LdtpExecutionError exception on failure
Refer: http://webcvs.freedesktop.org/ldtp/ldtp/src/text.c

Example

With respect to gnome search tool structure

gettextvalue ('SearchforFiles', 'txtNameContainsEntry')

The above statement will return the text present in 'txtNameContainsEntry' field.

gettextvalue ('SearchforFiles', 'txtNameContainsEntry', 5)

The above statement will return the text present in 'txtNameContainsEntry' field starting from the fifth character.

gettextvalue ('SearchforFiles', 'txtNameContainsEntry', 5, 10)

The above statement will return the text present in 'txtNameContainsEntry' field starting from the fifth character

till the tenth character.

Author:
Premkumar J <prem.jothimani@gmail.com>

Generated by  Doxygen 1.6.0   Back to index