grabfocus ('<window name>', '<component name>')
gives focus to the specified component. in case of a text box the cursor is placed in it.
- Return values:
-
With respect to gnome search tool structure
settextvalue ('SearchforFiles', 'txtNameContainsEntry')
This places the cursor in the 'txtNameContainsEntry' field.