Skip to content

PDFhandle contains function

This function is used to check certain text, word or sentence from the given PDF file.
You need to 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 file path, text to be checked, start page number and end page number of the PDF file.

After completing this step, step will look as below:

Here, C:Usernidhi.singhDownloadsdevicereport.pdf is a pdf file path Auto-Certification Platform is the string to be searched start and end as 2 refers to the page number of the pdf file.

Back To Top