LDTP  3.5.0
 All Pages
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: Linux: http://cgit.freedesktop.org/ldtp/ldtp2/tree/ldtpd/table.py

Mac: https://github.com/ldtp/pyatom/blob/master/atomac/ldtpd/table.py

Windows: https://github.com/ldtp/cobra/blob/master/Ldtpd/Tree.cs

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 nagap.nosp@m.pan@.nosp@m.gmail.nosp@m..com


Linux Desktop Testing Project