LDTP  3.5.0
 All Pages
getcharcount

Syntax

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

Description

Return the number of characters present in the component identified by the <component name>.

ImplementationDetails

Return values
numberof characters

Refer: Linux: http://cgit.freedesktop.org/ldtp/ldtp2/tree/ldtpd/text.py

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

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

Example

With respect to gedit

getcharcount('gedit', 'txt0')

This will return the number of characters in the file presently open.

Author
Premkumar J prem..nosp@m.joth.nosp@m.imani.nosp@m.@gma.nosp@m.il.co.nosp@m.m


Linux Desktop Testing Project