Skip to content

Prestashop as a test target#

Author Ville Purhonen
Last Updated 7.1.2025

In this guide we will go over Prestashop as a target for Robot Framework testing. The assumption is that you are hosting the service in CSC Pouta one way or another and can access the site on a browser either through open internet or through localhost.

presta_default

The front page should look something like this. Doing standard browser tests works like with any other website. Clicking elements, filling text and checking element properties or styles doesn't require anything special. Firefox is particularly useful for finding specific elements and their potential locator tags as it has the right click inspect element feature that automatically highlights the particular element at developer console.

Another handy tool is the Selenium IDE browser addon. After installing it make a new project, name it whatever then paste the website url for it. Click elements you want to interact with in the browser session it opens. Close the browser session and you should see this kind of screen.

selenium_ide

The circled area has the locators for the clicked elements. You can copy and paste these directly to the Robot Framework keywords that require locator as a parameter. The addon also provides several alternative expressions for each one, typically one on css and two with xpath.

API testing#

If you want to attempt very in-depth testing you can also access the website API using the official guide. API testing is made with Postman in mind, the official documentation has links to some ready made scripts. It can technically be done using the REST library for Robot Framework, but it is recommended to only try this if you have time to spare.