Verifysettext

From LDTP

Table of contents

Verify set text

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

Description

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

Implementation

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

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