RobotFramework Simple Page Object Example

A simple example of page objects implemented as resource file for Robot Framework, converted from a Java test example

Prerequisites:

To run the example/test:

See how the RF simple page object example is implemented:

You may go to the Github repo to see the source code. Or alternatively, view the HTML version of the RF test/resource files from the links below.

The page object example is structured as follows:

Reasons why I created this example:

This may not be the best (simple) example, and there are other examples you should see like:

http://www.beer30.org/2012/05/26/using-the-page-object-pattern-with-robot-framework/

https://blog.codecentric.de/en/2010/07/how-to-structure-a-scalable-and-maintainable-acceptance-test-suite/

but I wanted to offer:

an example with the code/files available to run "as is" after grabbing them from the repo, and more importantly...

an example that highlights good page object design practices - normally done in code but adapted as resource file(s) for robot framework, e.g.:

It is still recommended for one to go through the blog posts referenced above to get visual diagrams, more details, and examples of perhaps more complex implementations with multiple page objects.

I do hope that this example here will be useful to those not sure how to adapt page objects from code to resource files.

NOTES: