LDTP  3.5.0
 All Pages
verifysettext

Syntax

verifysettext('<window name>', '<component name>', '<text>')

Description

checks if the text is inserted into the component given by the component name

ImplementationDetails

Return values
1if the text is inserted into the specified component else returns 0

Refer: Linux: http://cgit.freedesktop.org/ldtp/ldtp2/tree/ldtpd/combo_box.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 gnome search tool structure

verifysettext('SearchforFiles', 'txtNameContainsEntry', 'abcd')

This is to verify if the previous settextvalue function has inserted 'abcd' into the txtNameContainsEntry field in the gnome search tool

Author
Poornima pnaya.nosp@m.k@no.nosp@m.vell..nosp@m.com


Linux Desktop Testing Project