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

typekey

Syntax

typekey ('<string to be typed>')

Description

On the current focus area, the string given as argument will be typed.

Refer: http://webcvs.freedesktop.org/ldtp/ldtp/python/ldtputils.py

Implementation

Return values:
1 if window exist and 0 otherwise.
This function supports

<alt> - for alt key

<ctrl> - for control key

<shift> - for pressing shift key

<enter> - for pressing enter key

<tab> - for pressing tab key

<del> - for pressing del key

<bksp> - for pressing back space key

<f1> - for pressing F1 function key

...

<f12> - for pressing F1 function key

<up> - for pressing up arrow key

<down> - for pressing down arrow key

<right> - for pressing right arrow key

<left> - for pressing left arrow key

<esc> - for pressing escape key

<space> - for pressing space bar

<home> - for pressing home key

<end> - for pressing end key

<pageup> - for pressing page up key

<pagedown> - for pressing page down key

Example

typekey ('<tab>testing LDTP using ltfx<enter>')

Intially a tab key will be pressed and then text will be typed and then enter key will be pressed

Dependency

ltfx binary - http://sourceforge.net/projects/ltfx

Author:
Nagappan <nagappan@gmail.com>

Shankar Ganesh <shagan.glare@gmail.com>


Generated by  Doxygen 1.6.0   Back to index