LDTP  2.3.1
setcellvalue

Syntax

setcellvalue('<window name>', '<table name>', <row>[, <column>[, '<data>']])

Description

Set a text in a cell or toggle a cell

Return values:
1on success, LdtpExecutionError exception on failure

Refer: http://cgit.freedesktop.org/ldtp/ldtp/tree/src/table.c

Example

With respect to gedit 2.30.2 Preferences dialog, Plugins tab

To toggle a plugin

setcellvalue('gedit Preferences', 'tblActivePlugins', 0)

With respect to Evolution 2.28.3, Tasks in Calendar view

To change existing task name

Note: Evolution doesn't provide an option through accessibility way to add Tasks in Calendar view, to work around use File->New->Tasks to add a New Task

The following example works only with existing task !

setcellvalue('Calendars - Evolution', 'tblTasks', 0, 2, 'Hello')

Author:
Nagappan Alagappan <nagappan@gmail.com>