Webtest WebTest GitHub Home

PDF Step pdfVerifyCheckboxField

Description

This step verifies a checkbox field in a PDF document. According to the PDF specification, fields with the same name must have the same value.

Parameters

name
Required? yes
The checkbox field name.
description
Required? no
The description of this test step.
exists
Required? yes/no
Specifies whether the property/field of interest is expected to exist or not. Must not be set if 'value' attribute is set.
page
Required? no
The page to restrict the verification to.
regex
Required? no, default is 'false'
Specifies whether the value represents a regular expression.
value
Required? yes/no
The text/regular expression required to match the property/field of interest. Must not be set if 'exists' attribute is set.

Details

pdfVerifyCheckboxField Example 1
<webtest name="pdftest - verify checkbox field existence">
  <config .../>
  <steps>
    <invoke .../>
    <pdfVerifyCheckboxField description="Checkbox field existence"
      page="2"
      name="OK"
      exists="true"/>
    ...
  </steps>
</webtest>
pdfVerifyCheckboxField Example 2
<webtest name="pdftest - verify checkbox field value">
  <config .../>
  <steps>
    <invoke .../>
    <pdfVerifyCheckboxField description="Checkbox field value"
      page="2"
      name="OK"
      value="(Yes|Ja)"
      regex="true"/>
    ...
  </steps>
</webtest>