TestProject Forum
Powered by leading experts in the test automation community

Open file and check its content


Is it possible to download file > open it > check the content?

There is an addon to catch last downloaded file, but that is just for file details and I could not find anything similar.

Thanks in advance.

You could use the ‘Shell Commands’ addon to execute any shell command to real the contents of the file.
In this example, I have a Word document on my Desktop, and I read the contents using the ‘more’ command on Windows.

And the output is stored in the action’s output parameter:

In your case, just replace the path to your downloaded file, and the command if you need to.

Also, if your file is a PDF, you can use the PDF Reader action in the ‘PDF Actions’ addon to read the contents directly.