grabfocus

Syntax

grabfocus ('<window name>', '<component name>')

Description

gives focus to the specified component. in case of a text box the cursor is placed in it.

Implementation

Return values:
1 on success, else 0

Example

With respect to gnome search tool structure

settextvalue ('SearchforFiles', 'txtNameContainsEntry')

This places the cursor in the 'txtNameContainsEntry' field.



Linux Desktop Testing Project