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

click

Syntax

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

Description

click on radio button / check box / push button/ combo box/ radio menu item/ toggle button/ radio button.

Implementation

Radio Button

If radio button is already in checked state, then this function will uncheck (unset) it.

If radio button is already in unchecked state, then this function will check (set) it.

Refer: http://webcvs.freedesktop.org/ldtp/ldtp/src/radio-button.c

Check Box

If check box is already in checked state, then this function will uncheck (unset) it.

If check box is already in unchecked state, then this function will check (set) it.

Refer: http://webcvs.freedesktop.org/ldtp/ldtp/src/check-box.c

Push Button

If push button state is enabled, then click on the object.

Refer: http://webcvs.freedesktop.org/ldtp/ldtp/src/push-button.c

Toggle Button

Click on the toggle button.

Refer: http://webcvs.freedesktop.org/ldtp/ldtp/src/toggle-button.c

Combo Box

Clicks on combo box, drop down list of combo box will be visible if not already else drop down list of combo box closes.

Refer: http://webcvs.freedesktop.org/ldtp/ldtp/src/combo-box.c

Examples

Example for push button (With respect to gedit open dialog)

click ('dlgOpen', 'btnOpen')

For Check box, Check menu item, on doing this action, the state will be toggled.

For Radio button, Radio menu item, if they are not already selected, they are selected, otherwise silently ignored.

Author:
Nagappan <nagappan@gmail.com>

Generated by  Doxygen 1.6.0   Back to index