pdf » assertPatternPresent(pdf,regex)
Description
This command asserts the text with the given pattern (regex
) is present in pdf
.
Parameters
- pdf - the PDF file to validate
- regex - regular expression to validate if
pdf
contains expected text pattern
Example
Use regular expression to define the pattern. With the given pattern, search for text that matches with text in the pdf document.
Script:
Output: