LDTP
3.5.0
|
getcharcount('<window name>', '<component name>')
Return the number of characters present in the component identified by the <component name>.
number | of 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
With respect to gedit
getcharcount('gedit', 'txt0')
This will return the number of characters in the file presently open.