PDFhandle contains function

This function is used to check certain text, word or sentence from the given PDF file.
Provide PDF file path and the value which is to be checked along with the start and end page number of the pdf file. The result will be stored in a variable defined in element key. If the given value is found in the PDF file it will return true else it will return false.

Syntax: ${__pdfHandle (action=contains,fPath=pdf file path,text=sample string,start=2,end=2)}

Edit parameter section and click on Form, select functions from the dropdown and select PDFHANDLE function. Now choose contains from the action dropdown and provide the required values in the form.

After completing this step, test step will look as below:

Here, D:\SampleFiles_for_BB\SamplePDFs\Static_text_qhp_.pdf is a pdf file path than ninety (90) days is the string to be searched. start and end as 2 refers to the page number of the pdf file.

Was this page helpful?