Skip to content
On this page

Tips & Best Practices

  • Use the parent parameter to create nested selectors for complex pages.
  • Define custom keywords in your Page Object classes for reusable actions.
  • Use the AS alias in Robot Framework to avoid naming conflicts.
  • Keep your page objects small and focused on a single page or component.
  • Store common variables in a variables.py file and import them in your tests.

For more, see the Examples section.